عن أبي هريرة رضي الله عنه أنه سمع رسول الله صلى الله عليه وسلم يقول‏:‏ ‏"‏من سمع رجلا ينشد ضالة في المسجد فليقل‏:‏ لا ردها الله عليك، فإن المساجد لم تبنَ لهذا‏"‏ ‏(‏‏(‏رواه مسلم‏)‏‏)‏‏.‏
Copy
As-Sa'ib bin Yazid (May Allah be pleased with him) said

While I was in the mosque, someone threw a pebble at me, and when I looked up, I saw that it was 'Umar bin Al-Khattab, who said: "Go and call me these two men." I brought them and 'Umar (May Allah be pleased with him) asked them: "Where are you from?" On their replying that they belonged to At-Taif, he said: "Had you been the inhabitants of Al-Madinah, I would have given you a beating for raising your voices in the mosque of the Messenger of Allah (ﷺ)."[Al- Bukhari].