Sunan Ibn Majah 264
The Book of the Sunnah
حَدَّثَنَا أَحْمَدُ بْنُ الأَزْهَرِ، حَدَّثَنَا الْهَيْثَمُ بْنُ جَمِيلٍ، حَدَّثَنِي عُمَرُ بْنُ سُلَيْمٍ، حَدَّثَنَا يُوسُفُ بْنُ إِبْرَاهِيمَ، قَالَ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ، يَقُولُ سَمِعْتُ رَسُولَ اللَّهِ ـ صلى الله عليه وسلم ـ يَقُولُ " مَنْ سُئِلَ عَنْ عِلْمٍ فَكَتَمَهُ أُلْجِمَ يَوْمَ الْقِيَامَةِ بِلِجَامٍ مِنْ نَارٍ " .
Yusuf bin Ibrahim said:'I heard Anas bin Malik say: "I heard the Messenger of Allah say: "Whoever is asked about knowledge and conceals it, it will be bridled on the Day of Resurrection with reins of fire
Grading: Al-Albani: Sahih · Muhammad Fouad Abd al-Baqi: Sahih · Zubair Ali Zai: Hasan
Text from the public-domain hadith-api dataset. Numbering follows that dataset and can differ by a few from some printed editions — check the wording, not only the number.