It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) entered the mosque while the Prophet (peace and blessings be upon him) was delivering the sermon. He sat beside Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) and asked him about something, or said something to him, but Sayyiduna Ubayy (may Allah be pleased with him) gave him no reply, so Sayyiduna Ibn Mas'ud (may Allah be pleased with him) thought he might be displeased with him. Then when the Prophet (peace and blessings be upon him) had finished the prayer, Sayyiduna Ibn Mas'ud (may Allah be pleased with him) asked: "O Ubayy, what prevented you from answering me?" He replied: "You did not attend the Friday prayer with us." He asked: "Why is that?" Sayyiduna Ubayy (may Allah be pleased with him) said: "You spoke while the Prophet (peace and blessings be upon him) was delivering the sermon." So Sayyiduna Ibn Mas'ud (may Allah be pleased with him) got up, came to the Prophet (peace and blessings be upon him) and mentioned this incident, and the Messenger of Allah (peace and blessings be upon him) said: "Ubayy has spoken the truth; obey Ubayy (that is, follow him)."
Hadith Referenceمسند أبي يعلى الموصلي / مسند جابر / 1799
Hadith Takhrij«قال سعيد بن محمد السناري: قوى» «أخرجه المعجم الكبير للطبراني برقم: 9540، وأخرجه المعجم الأوسط للطبراني برقم: 3740، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 6291، وأخرجه صحيح ابن حبان برقم: 2794، وأخرجه إتحاف الخيرة المهرة بزوائد المسانيد العشرة برقم: 1534، مسند ابویعلیٰ ترقیم الاثری: 1793»