Ka’b ibn Malik reported: The Prophet, peace and blessings be upon him, said:
???? ?????? ????????? ??????????? ???? ???????????? ???? ??????????? ???? ???????????? ???? ???????? ???? ??????? ???????? ???????? ?????????? ??????? ????????
Whoever seeks knowledge to impress the scholars, to argue with the foolish, or to attract the attention of people, Allah will admit him into Hellfire.
Source: Sunan al-Tirmidhi? 2654, Grade: Hasan