It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (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 means of it, or to turn people's faces towards himself (that is, to draw people's attention to himself), he is in the Fire."
Imam al-Daraqutni (may Allah have mercy on him) said: "This hadith of Qatadah from Anas is gharib (singular); Shayban bin Abd al-Rahman is alone in narrating it, and no one narrated it from him except Sulayman bin Ziyad al-Thaqafi al-Wasiti."