Full Sharh — Mishkat al-Masabih 215
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنْ تَعَلَّمَ عِلْمًا مِمَّا يُبْتَغَى بِهِ وَجْهُ اللَّهِ لَا يَتَعَلَّمُهُ إِلَّا لِيُصِيبَ بِهِ عَرَضًا مِنَ الدُّنْيَا لَمْ يَجِدْ عَرْفَ الْجَنَّةِ يَوْمَ الْقِيَامَةِ» . يَعْنِي رِيحَهَا. رَوَاهُ أَحْمَدُ وَأَبُو دَاوُدَ وَابْن مَاجَه
English Translation
Abu Huraira reported God’s messenger as saying, “If anyone acquires knowledge of things by which God’s good pleasure is sought, but acquires it only to get some worldly advantage, he will not experience the ‘arf, i.e. the odour, of paradise on the day of resurrection.” Ahmad, Abu Dawud and Ibn Majah transmitted it.
Source
Mishkat al-Masabih(مشكاة المصابيح)
Knowledge
Hadith Number
215