Hasan al-Basri narrates: A prophet camped under a tree. An ant bit him under that tree, so by his order, the ant hills were set on fire. Allah Almighty revealed to him: Was it not only one ant that bit you? With another chain of narration, this same narration is reported from Sayyiduna Abu Hurairah (may Allah be pleased with him) from the Prophet Muhammad (peace and blessings be upon him). However, in that narration, these words are present: "These ants used to glorify Allah."
Hadith Referenceصحیح ابن حبان / كتاب الحظر والإباحة / 5647
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيتنبيه!! هذا الحديث فصله الشيخ الألباني جزئين لوجود إسنادين به: الجزء الأول: 5618 - أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدٍ ... هَلاَّ نَمْلَةً وَاحِدَةً». وقال عن هذا الجزء: صحيح. الجزء الثاني: [5618/*] أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدٍ فِي عَقِبِهِ ... فَإِنَّهُنَّ يُسَبِّحْنَ». وقال عن هذا الجزء: صحيح - انظر ما قبله. - مدخل بيانات الشاملة -.فضيلة الشيخ العلّامة شُعيب الأرناؤوطالإسناد الأول فيه انقطاع والإسناد الثاني متصل صحيح