Sunan Abi Dawud 474
Anas b. Malik reported the Prophet(ﷺ) as saying:Spitting in the mosque is a sin and it is expiated by burying the spittle
حَدَّثَنَا مُسْلِمُ بْنُ إِبْرَاهِيمَ، حَدَّثَنَا هِشَامٌ، وَشُعْبَةُ، وَأَبَانُ، عَنْ قَتَادَةَ، عَنْ أَنَسِ بْنِ مَالِكٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ " التَّفْلُ فِي الْمَسْجِدِ خَطِيئَةٌ وَكَفَّارَتُهُ أَنْ تُوَارِيَهُ " .
Sahih — Al-AlbaniSahih — Muhammad Muhyi Al-Din Abdul HamidSahih — Shuaib Al ArnautIsnaad Sahih Sahih Bukhari (415) Sahih Muslim (552) — Zubair Ali Zai