[Machine] I heard the Prophet ﷺ saying, "If you say to your companion, 'Be quiet' while the imam is delivering the sermon, then you have engaged in idle talk." Ibn Juraij said that Ibn Shihab informed me on the authority of Umar ibn Abdul Aziz, on the authority of Ibrahim ibn Abdullah ibn Qarizh, on the authority of Abu Hurairah, who reported from the Prophet ﷺ something similar to this.
سَمِعْتُ النَّبِيَّ ﷺ يَقُولُ إِذَا قُلْتَ لِصَاحِبِكَ وَالْإِمَامُ يَخْطُبُ أَنْصِتْ فَقَدْ لَغَوْتَ قَالَ ابْنُ جُرَيْجٍ وَأَخْبَرَنِي ابْنُ شِهَابٍ عَنْ عُمَرَ بْنِ عَبْدِ الْعَزِيزِ عَنْ إِبْرَاهِيمَ بْنِ عَبْدِ اللهِ بْنِ قَارِظٍ عَنْ أَبِي هُرَيْرَةَ عَنِ النَّبِيِّ ﷺ مِثْلَهُ