Whoever acquires knowledge that should be pursued for the sake of Allah Almighty for the sole purpose of securing worldly gains shall not smell the ‘Arf of Paradise on the Day of Judgment
Chapter: Regarding seeking knowledge for other than (the sake of) Allah
Abu Hurayrah (may Allah be pleased with him) reported: The Messenger of Allah (may Allah's peace and blessings be upon him) said:
"Whoever acquires knowledge that should be pursued for the sake of Allah Almighty for the sole purpose of securing worldly gains shall not smell the ‘Arf of Paradise on the Day of Judgment." i.e., its fragrance.
Reported by Abu Dawud (No. 3664), Ibn Majah (No. 252) and Ahmad (No. 8103).
The Prophet (may Allah's peace and blessings be upon him) clarified that whoever learns religious knowledge—which is originally meant to seek the pleasure of Allah Almighty—but learns it only to attain worldly gain or benefit, such as wealth or status, will not smell the fragrance of Paradise on the Day of Judgment.
Lessons
The obligation of sincerity in seeking knowledge and encouraging this.
A stern warning against using religious knowledge for show off or as a means to attain worldly gain, as this is considered one of the major sins.
Whoever seeks knowledge for the sake of Allah and the worldly gains come to him as a result, it is permissible for him to take them, and it will not harm him.
As-Sindi said: His statement (the ‘Arf of Paradise) refers to its fragrance. This is an emphasis on the prohibition from Paradise, because whoever cannot even smell something certainly will not partake of it.
Whoever learns knowledge that is meant to be sought for the sake of Allah but does so for the sake of a job or other worldly aims must repent to Allah for that. And Allah will erase what resulted from the corrupt intention, for He is the Possessor of great bounty, Glorified and Exalted is He.
This warning is directed at the seeker of religious knowledge. As for someone who seeks knowledge of worldly sciences, such as engineering, chemistry, and the like, for the sake of worldly gain, then his intention is judged accordingly.
Explanation in Arabic
بيَّن النبي صلى الله عليه وسلم أنَ من تعلم العلم الشرعي الذي الأصل فيه أن يراد به رضى الله تعالى لا يتعلمه إلا ليصيب وينال به حظًا ومتاعًا من الدنيا من مالٍ أو جاهٍ لم يجد ريح الجنة يوم القيامة.
وجوب الإخلاص في طلب العلم، والحث على ذلك.
التحذير الشديد من اتخاذ العلم الشرعي رياءً أو مطية للدنيا، وأن ذلك من كبائر الذنوب.
أن من طلب العلم لله تعالى وجاءته الدنيا تبعا جاز له أخذها، ولم يضره ذلك.
قال السندي: قوله (عرف الجنة): الرائحة، مبالغة في تحريم الجنة؛ لأن من لا يجد ريح الشيء لا يتناوله.
من تعلم علمًا مما يبتغى به وجه الله من أجل الوظيفة، أو من أجل أغراض أخرى؛ فإن عليه التوبة إلى الله من ذلك، والله يمحو عنه ما حصل من النية الفاسدة وهو ذو الفضل العظيم سبحانه وتعالى.
هذا التحذير لطالب العلم الشرعي، أما من طلب علمًا من علوم الدنيا لأجل متاع الدنيا كالهندسة والكيمياء وغيرهما لأجل الدنيا فله نيته.