Hadith 188

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 1698
وعن بريدة رضي الله عنه أن رجلا نشد في المسجد فقال‏:‏ من دعا إلى الجمل الأحمر، فقال رسول الله صلى الله عليه وسلم ‏:‏ ‏ ‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏
"‏لا وجدت، إنما بنيت المساجد لم بنيت له‏"
Buraidah (May Allah be pleased with him) said:

A man announced (the loss of his camel) in the mosque, uttering these words: "Has any one seen my red camel?" Upon this the Messenger of Allah (ﷺ) said, "May it not be restored to you! The mosques are built for what they are meant to be (i.e., prayer, remembrance of Allah, acquiring knowledge, etc.)."[Muslim].