Hadith 472
Abu Hurairah reported the Messenger of Allah ﷺ as saying; one shall have the thing the for which one comes to the mosque.
Hadith 3716
Narrated Abu Hurairah: I knew that the Messenger of Allah ﷺ used to keep fast. I waited for the day when he did not fast to present him the drink (nabidh) which I made in a pumpkin. I then brought it to him while it fermented. He said: Throw it to this wall, for this is a drink of the one who does not believe in Allah and the Last Day.
Hadith 4436
A part of tradition has also been transmitted by al-Lajlaj from the Prophet ﷺ through a different chain of narrators.
Hadith 4490
Narrated Hakim ibn Hizam: The Messenger of Allah ﷺ forbade to take retaliation in the mosque, to recite verses in it and to inflict the prescribed punishments in it.