قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " مَنْ تَعَلَّمَ عِلْمًا مِمَّا يُبْتَغَى بِهِ وَجْهُ اللَّهِ عَزَّ وَجَلَّ لاَ يَتَعَلَّمُهُ إِلاَّ لِيُصِيبَ بِهِ عَرَضًا مِنَ الدُّنْيَا لَمْ يَجِدْ عَرْفَ الْجَنَّةِ يَوْمَ الْقِيَامَةِ " . يَعْنِي رِيحَهَا .
Narrated Abu Hurayrah: The Prophet (ﷺ) said: If anyone acquires knowledge that should be sought seeking the Face of Allah, but he acquires it only to get some worldly advantage, he will not experience the arf, i.e. the fragrance, of Paradise
قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " مَنْ تَعَلَّمَ عِلْمًا مِمَّا يُبْتَغَى بِهِ وَجْهُ اللَّهِ لاَ يَتَعَلَّمُهُ إِلاَّ لِيُصِيبَ بِهِ عَرَضًا مِنَ الدُّنْيَا لَمْ يَجِدْ عَرْفَ الْجَنَّةِ يَوْمَ الْقِيَامَةِ " . يَعْنِي رِيحَهَا . قَالَ أَبُو الْحَسَنِ أَنْبَأَنَا أَبُو حَاتِمٍ، حَدَّثَنَا سَعِيدُ بْنُ مَنْصُورٍ، حَدَّثَنَا فُلَيْحُ …
It was narrated that Abu Hurairah said:"The Messenger of Allah said: 'Whoever acquires knowledge by which the pleasure of Allah is sought, but he only acquires it for the purpose of worldly gain, will not smell the fragrance of Paradise on the Day of Resurrection.'" (Hasan) Another chain with similar wording
قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنْ تَعَلَّمَ عِلْمًا مِمَّا يُبْتَغَى بِهِ وَجْهُ اللَّهِ لَا يَتَعَلَّمُهُ إِلَّا لِيُصِيبَ بِهِ عَرَضًا مِنَ الدُّنْيَا لَمْ يَجِدْ عَرْفَ الْجَنَّةِ يَوْمَ الْقِيَامَةِ» . يَعْنِي رِيحَهَا. رَوَاهُ أَحْمَدُ وَأَبُو دَاوُدَ وَابْن مَاجَه
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.