(39) باب النَّهْىِ عَنْ قَتْلِ النَّمْلِ،
Abu Huraira reported Allah's Messenger (ﷺ) as saying:
An Apostle from amongst the Apostles of Allah encamped under a tree, and an ant bit him, and he commanded his belongings to be removed from underneath the tree. He then commanded and it was burnt, and Allah revealed to bin):" Why one ant (which had bitten you) was not killed?"
Reference: Sahih Muslim 2241 b
In-book reference: Book 39, Hadith 201
USC-MSA web (English) reference(deprecated numbering scheme): Book 26, Hadith 5568