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].
App reference: Book 18, Hadith 190
Arabic/English book reference: Book 18, Hadith 1700