Knowledge sought for other than Allāh

The Messenger of Allāh ﷺ said:

If anyone acquires knowledge that should be sought seeking the Face of Allāh, but he acquires it only to get some worldly advantage, he will not experience the fragrance of Paradise.

— Narrated by Abū Hurayrah رضي الله عنه

Dalīl: Musnad Aḥmad #8457, Sunan Abū Dāwūd #3664, Sunan ibn Mājah #252, Muṣannaf ibn Abī Shaybah #543, Ṣaḥīḥ ibn Ḥibbān #89, al-Mustadrak ʿala aṣ-Ṣaḥīḥayn 1/89, Iqtiḍā’ al-ʿĪlm al-ʿAmal #102

Ḥukm: Ṣaḥīḥ to Imām ibn Ḥibbān, Imām al-Hākim an-Nishāpurī, Shaykh al-Albānī, and others — Ḥasan to Shaykh Zubayr ʿAlī Zay