Al-Adab Al-Mufrad, Book 51, Hadith 1237 (English) ⓘ
Anas ibn Malik reported that a man cursed fleas in the presence of the Prophet, may Allah bless him and grant him peace, and the Prophet, may Allah bless him and grant him peace, said, "Do not curse them. A flea woke up one of the Prophets for the prayer."
حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، قَالَ: حَدَّثَنَا صَفْوَانُ بْنُ عِيسَى، قَالَ: حَدَّثَنَا سُوَيْدٌ أَبُو حَاتِمٍ، عَنْ قَتَادَةَ، عَنْ أَنَسِ بْنِ مَالِكٍ، أَنَّ رَجُلاً لَعَنَ بُرْغُوثًا عِنْدَ النَّبِيِّ صلى الله عليه وسلم، فَقَالَ: لاَ تَلْعَنْهُ، فَإِنَّهُ أَيْقَظَ نَبِيًّا مِنَ الأنْبِيَاءِ لِلصَّلاةِ.
also referenced under: Hadith 1237 (Reference) & Book 51, Hadith 1237 (In-Book)