Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:3608Abū Bakr b. al-Ḥārith > Abū Muḥammad b. Yaḥyá b. Ḥibbān > Abū Yaḥyá al-Rāzī > Hannād > Wakīʿ > ʿAlī b. Mubārak > Yaḥyá b. Abū Kathīr > Ḥaḍramī b. Lāḥiq > a man from al-Anṣār

[Machine] The Messenger of Allah ﷺ said: "When one of you finds a louse in the mosque, let him crush it until he kills it. And this is a good and appropriate ruling in such a case."  

البيهقي:٣٦٠٨وَأَخْبَرَنَا أَبُو بَكْرِ بْنُ الْحَارِثِ أنبأ أَبُو مُحَمَّدِ بْنُ يَحْيَى بْنِ حِبَّانَ ثنا أَبُو يَحْيَى الرَّازِيُّ ثنا هَنَّادٌ ثنا وَكِيعٌ عَنْ عَلِيِّ بْنِ مُبَارَكٍ عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ عَنْ حَضْرَمِيِّ بْنِ لَاحِقٍ عَنْ رَجُلٍ مِنَ الْأَنْصَارِ قَالَ

قَالَ رَسُولُ اللهِ ﷺ إِذَا وَجَدَ أَحَدُكُمُ الْقَمْلَةَ فِي الْمَسْجِدِ فَلْيَصُرَّهَا حَتَّى يُخْرِجَهَا وَهَذَا مُرْسَلٌ حَسَنٌ فِي مِثْلِ هَذَا  


See similar narrations below:

Collected by Suyūṭī