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