Ibn Mas’ud –(radiyallaahu ‘anhu) – would advise his students,
If your intention is one of these three, do not seek knowledge:
To shame the ignorant, or
To argue with the Fuqahaa’ (scholars), or
To cause people to turn their faces in your direction.
Intend with your actions and words that which is with Allaah, for indeed that which is with Allaah shall remain and everything else shall perish.