The Prophet ﷺ said, "If you say to your companion, 'Be quiet,' on Friday while the imam is delivering the sermon, you have engaged in idle talk."
حدثنا أبو بكر بن أبي شيبة حدثنا شبابة بن سوار عن ابن أبي ذئب عن الزهري عن سعيد بن المسيب
أن النبي ﷺ قال إذا قلت لصاحبك أنصت يوم الجمعة والإمام يخطب فقد لغوت
Bukhari transmitted it, Jumuah, Chapter: Remaining silent on Friday while the imam is delivering the sermon, no. 934, and Muslim, Jumuah, Chapter: On remaining silent on Friday during the sermon, no. 851, from the hadith of Zuhri, through this same route.