Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates this statement of the Noble Prophet (peace and blessings be upon him): "An ant bit a prophet, so by his command, the colony of ants was set on fire. Then Allah Almighty revealed to him: 'An ant had bitten you, yet you destroyed an entire community that used to glorify (Allah).'"
Hadith Referenceصحیح ابن حبان / كتاب الحظر والإباحة / 5614
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «التعليق الرغيب» (3/ 40): ق.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط مسلم