Mishkat al-Masabih 228
وَعَنِ ابْنِ مَسْعُودٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «نَضَّرَ اللَّهُ عَبْدًا سَمِعَ مَقَالَتِي فَحَفِظَهَا وَوَعَاهَا وَأَدَّاهَا فَرُبَّ حَامِلِ فِقْهٍ غَيْرِ فَقِيهٍ وَرُبَّ حَامِلِ فِقْهٍ إِلَى مَنْ هُوَ أَفْقَهُ مِنْهُ. ثَلَاثٌ لَا يَغِلُّ عَلَيْهِنَّ قَلْبُ مُسْلِمٍ إِخْلَاصُ الْعَمَلِ لِلَّهِ وَالنَّصِيحَةُ لِلْمُسْلِمِينَ وَلُزُومُ جَمَاعَتِهِمْ فَإِنَّ دَعْوَتَهُمْ تُحِيطُ مِنْ ورائهم» . رَوَاهُ الشَّافِعِي وَالْبَيْهَقِيّ فِي الْمدْخل
From Ibn Masʿud, who said: The Messenger of Allah ﷺ said: "May Allah make radiant a slave who heard my words, memorised them, retained them and conveyed them. Many a carrier of understanding is not himself one of understanding, and many a carrier of understanding carries it to one who has more understanding than he. Three things the heart of a Muslim does not harbour rancour against: sincerity of deeds for Allah, sincere counsel to the Muslims, and keeping to their Jamaʿah, for their supplication encompasses those behind them." Reported by ash-Shafiʿi, and by al-Bayhaqi in al-Madkhal.