عَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «كُلُّ ذِي نَابٍ منَ السِّباعِ فأكلُه حرامٌ» . رَوَاهُ مُسلم
Translation

He reported God’s messenger as saying that when a prophet was stung by an ant he ordered a colony of ants to be burned, and God most high revealed to him, "Because an ant stung you you have burned a community which glorifies me." (Bukhari and Muslim.)

Comment

Hadith Commentary: The Sanctity of God's Creation

This profound narration from Sahih al-Bukhari and Sahih Muslim, recorded in Mishkat al-Masabih 4122 under "Game and Animals Which May Be Slaughtered," carries essential legal and spiritual principles regarding our interaction with Allah's creation.

The Prohibition of Indiscriminate Harm

The core legal ruling derived is the impermissibility of inflicting collective punishment upon creatures or destroying entire communities for the transgression of a single individual among them. This establishes a fundamental principle of Islamic jurisprudence: punishment must be proportionate and specific to the offender.

The Prophet's swift divine correction demonstrates that even a prophet's personal discomfort does not justify the annihilation of a species or community that engages in God's remembrance.

The Spiritual Status of Creatures

God's revelation, "a community which glorifies Me," affirms that various creatures engage in forms of tasbih (glorification) unique to their nature. This elevates their status beyond mere property and establishes their inherent right to existence as worshipping beings.

Scholars note that this understanding should cultivate mercy and mindfulness in Muslims, recognizing that we share this world with countless communities that praise their Creator in ways beyond human comprehension.

Practical Application in Islamic Law

This hadith forms the basis for rulings regarding pest control and animal treatment. While Islam permits killing harmful creatures that pose genuine danger, it prohibits excessive destruction and requires the most merciful method available.

The incident serves as a timeless lesson against allowing personal anger to dictate actions, emphasizing instead the principles of justice, proportionality, and reverence for all life that engages in God's remembrance.