Full Sharh — Riyad as-Salihin 1021
وعن السائب بن زيد الصحابي رضي الله عنه قال: كنت في المسجد فحصبني رجل، فنظرت فإذا عمر بن الخطاب رضي الله عنه فقال: اذهب فائتني بهذين، فجئته بهما، فقال: من أين أنتما؟ فقالا: من أهل الطائف، فقال: لو كنتما من أهل البلد، لأوجعتكما، ترفعان أصواتكما في مسجد رسول الله صلى الله عليه وسلم ! ((رواه البخاري)).
English Translation
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 (ﷺ).".
Source
Riyad as-Salihin(رياض الصالحين)
The Book of the Prohibited actions
Hadith Number
1021