Jami` at-Tirmidhi 572
جامع الترمذي#572SahihAnas bin Malik narrated that :the Messenger of Allah said: "To spit in the Masjid is a sin, and burying it is its atonement
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Ahmad Muhammad ShakirSahih
Al-AlbaniSahih
Bashar Awad MaaroufHasan Sahih
Zubair Ali ZaiSahih - Agreed Upon
In-book reference: 6:29