It is narrated from Sayyidah Umm Salamah (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) said: "Whoever learns knowledge in order to boast with it before the scholars or to argue with the foolish by it, he is in Hell."
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 19923