Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “An ant bit a prophet among the prophets, so he ordered for the colony of ants to be burned. Allah revealed to him: One ant has bitten you and you destroy one of the nations that praise Allah?”
Source: Ṣaḥīḥ al-Bukhārī 3019, Ṣaḥīḥ Muslim 2241
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
عَنْ أَبِي هُرَيْرَةَ عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم قَالَ أَنَّ نَمْلَةً قَرَصَتْ نَبِيًّا مِنَ الأَنْبِيَاءِ فَأَمَرَ بِقَرْيَةِ النَّمْلِ فَأُحْرِقَتْ فَأَوْحَى اللَّهُ إِلَيْهِ أَفِي أَنْ قَرَصَتْكَ نَمْلَةٌ أَهْلَكْتَ أُمَّةً مِنَ الأُمَمِ تُسَبِّحُ
3019 صحيح البخاري كتاب الجهاد والسير باب إذا حرق المشرك المسلم هل يحرق
2241 صحيح مسلم كتاب السلام باب النهي عن قتل النمل