The Prophet (ﷺ) 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.
Sunan Abi Dawud Book 26, Hadith 18