The Book of the Prohibited actions
Riyad as-Salihin #1020
كتاب الأمور المنهي عنها
وعن عمرو بن شعيب، عن أبيه، عن جده رضي الله عنه أن رسول الله صلى الله عليه وسلم نهى عن الشراء والبيع في المسجد، وأن تنشد فيه ضالة، أو ينشد فيه شعر. ((رواه أبو داود، والترمذي وقال حديث حسن))
'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..
وعن عمرو بن شعيب، عن أبيه، عن جده رضي الله عنه أن رسول الله صلى الله عليه وسلم نهى عن الشراء والبيع في المسجد، وأن تنشد فيه ضالة، أو ينشد فيه شعر. ((رواه أبو داود، والترمذي وقال حديث حسن))
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..
— Riyad as-Salihin, Hadith 1020