Hadith 186

Riyad as-Salihin

Book 17: The Book of the Prohibited actions

Chapter 310

Undesirability of Quarrelling or Raising voices in the Mosque

باب كراهة الخصومة في المسجد ورفع الصوت فيه ونشد الضالة والبيع والشراء والإجارة ونحوها من المعاملات

Riyad as-Salihin 1696
عن أبي هريرة رضي الله عنه أنه سمع رسول الله صلى الله عليه وسلم يقول‏:‏ ‏ ‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏
"‏من سمع رجلا ينشد ضالة في المسجد فليقل‏:‏ لا ردها الله عليك، فإن المساجد لم تبنَ لهذا‏"
Abu Hurairah (May Allah be pleased with him) said:

The Messenger of Allah (ﷺ) said, "If anyone hears a man inquiring in the mosque about something he has lost, he should say: 'La raddaha Allahu 'alaika (May Allah not restore it to you),' for mosques are not built for this purpose."[Muslim]