حَدَّثَنَا عَبْدُ الْأَعْلَى ، حَدَّثَنَا يَعْقُوبُ ، حَدَّثَنِي عِيسَى بْنُ جَارِيَةَ ، عَنْ جَابِرٍ ، قَالَ : دَخَلَ عَبْدُ اللهِ بْنُ مَسْعُودٍ الْمَسْجِدَ وَالنَّبِيُّ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - يَخْطُبُ ، فَجَلَسَ إِلَى جَنْبِهِ أُبَيُّ بْنُ كَعْبٍ ، فَسَأَلَهُ عَنْ شَيْءٍ - أَوْ كَلَّمَهُ بِشَيْءٍ - فَلَمْ يَرُدَّ عَلَيْهِ أُبَيٌّ ، فَظَنَّ ابْنُ مَسْعُودٍ أَنَّهَا مَوْجِدَةٌ ، فَلَمَّا انْفَتَلَ النَّبِيُّ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - مِنْ صَلَاتِهِ ، قَالَ ابْنُ مَسْعُودٍ : يَا أُبَيُّ ، مَا مَنَعَكَ أَنْ تَرُدَّ عَلَيَّ ؟ قَالَ : إِنَّكَ لَمْ تَحْضُرْ مَعَنَا الْجُمُعَةَ ، قَالَ : لِمَ ؟ قَالَ : تَكَلَّمْتَ وَالنَّبِيُّ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - يَخْطُبُ ، فَقَامَ ابْنُ مَسْعُودٍ فَدَخَلَ عَلَى النَّبِيِّ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - فَذَكَرَ ذَلِكَ لَهُ ، فَقَالَ رَسُولُ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - : صَدَقَ أُبَيٌّ ، أَطِعْ أُبَيًّا .
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)."
Related hadith on this topic