He who is asked something he knows and conceals it will have a bridle of fire put on him on the Day of Resurrection
Authentic hadithعن أبي هريرة رضي الله عنه أن النبي صلى الله عليه وسلم قال: «مَنْ سُئِلَ عن عِلْمٍ فَكَتَمَهُ، أُلْجِمَ يوم القيامةِ بِلِجَامٍ مِنْ نارٍ».
Abu Hurayrah (may Allah be pleased with him) reported that the Prophet (may Allah's peace and blessings be upon him) said: "He who is asked something he knows and conceals it will have a bridle of fire put on him on the Day of Resurrection."
Explanation
This Hadīth carries a stern warning about the concealment of knowledge and that if a person is asked about something that concerns the questioner as regards his religious matters, and he is duty-bound to answer him, yet he fails to answer and clarify the matter to him, Allah, the Almighty, will punish him in the Hereafter by putting a bridle of fire over his mouth. However, if the questioner poses the question for some other reason, like testing the one he asks, the asked one has the choice to answer him or not, without falling under the warning set out in the Hadīth.
Source · Narrated by Ibn Majah - Narrated by At-Termedhy - Narrated by Abu Daoud - Narrated by Ahmad
From the Hadith Encyclopedia (hadeethenc.com).