'Amr bin Shu'aib on the authority of his grandfather (May Allah be pleased with him) said:
The Messenger of Allah (ﷺ) prohibited (us) from buying and selling in the mosque; (he also prohibited us from) making announcement in it about something lost and from reciting poems in it.[Abu Dawud and At- Tirmidhi].
App reference: Book 18, Hadith 189
Arabic/English book reference: Book 18, Hadith 1699