Hadithcore
Mishkat al-Masabih, 223, 224

Abu Huraira reported God’s messenger as saying, “He who is asked about something he knows and conceals it will have a bridle of fire put on him on the day of resurrection.” Ahmad, Abu Dawud and Tirmidhi transmitted it, and Ibn Majah transmitted it from Anas.

وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «من سُئِلَ عَنْ عِلْمٍ عَلِمَهُ ثُمَّ كَتَمَهُ أُلْجِمَ يَوْمَ الْقِيَامَةِ بِلِجَامٍ مِنْ نَارٍ» . رَوَاهُ أَحْمَدُ وَأَبُو دَاوُد وَالتِّرْمِذِيّ وَرَوَاهُ ابْن مَاجَه عَن أنس

References1 variant
In-Book Reference
Book 2, Hadith 25