Hadithcore
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.)." <b>[Muslim]</b>.

وعن بريدة رضي الله عنه أن رجلا نشد في المسجد فقال‏:‏ من دعا إلى الجمل الأحمر، فقال رسول الله صلى الله عليه وسلم ‏:‏ ‏

‏لا وجدت، إنما بنيت المساجد لم بنيت له‏

‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Book 17, Hadith 188
Sharh · explanationclick to expand
<b>Guidance from the Hadiths:</b><br> 1) It is prohibited to inquire about a lost item in the mosque, given its great status and to avoid distracting the worshipers.<br> 2) It is prohibited to buy or sell in the mosque. This applies to both the buyer and the seller.<br> 3) We are encouraged to frequently remember Allah Almighty, recite the Qur’an, seek Shariah knowledge, and establish prayers in the mosques. Indeed, this is the purpose behind constructing them.<br> 4) it is prohibited to recite idle poetry in the mosque. As for such poems that involve wisdom and asceticism and encourage obedience to Allah and Jihad in His cause, it is recommended and desirable to recite them.
Related hadiths4
Compare isnād across 4 related chains →