that the Messenger of Allah (ﷺ) said: "Whoever is asked about some knowledge that he knows, then he conceals it, he will be bridled with bridle of fire."
Jami` at-Tirmidhi Book 41, Hadith 5