'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]. (ES)
App reference (ES): Book 18, Hadith 189 (ES)
Arabic/English book reference (ES): Book 18, Hadith 1699 (ES)