بسم الله الرحمن الرحيم
Ibn Mas`ûd (رضي الله عنه) would advise his students:
If your intention is one of these three, do not seek knowledge,
1) To shame the ignorant, or
2) To argue with the Fuqahâ’ (scholars), or
3) To cause people to turn their faces in your direction.
Intend with your actions and words that which is with Allâh, for indeed that which is with Allâh shall remain and everything else shall perish.