Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever seeks knowledge that should be sought for the sake of Allah Almighty, but only to gain some worldly benefit, he will never know the fragrance Paradise on the Day of Resurrection.”
Source: Sunan Abī Dāwūd 3664
Grade: Sahih (authentic) according to Al-Albani
عَنْ أَبِي هُرَيْرَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ تَعَلَّمَ عِلْمًا مِمَّا يُبْتَغَى بِهِ وَجْهُ اللَّهِ عَزَّ وَجَلَّ لَا يَتَعَلَّمُهُ إِلَّا لِيُصِيبَ بِهِ عَرَضًا مِنْ الدُّنْيَا لَمْ يَجِدْ عَرْفَ الْجَنَّةِ يَوْمَ الْقِيَامَةِ
3664 سنن أبي داود كتاب العلم باب في طلب العلم لغير الله تعالى
3664 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح أبي داود