كتاب صلاة المسافرين وقصرها
6  
The Book of Prayer - Travellers
(47)
Chapter: The virtue of one who acts in accordance with the Qur’an and teaches it. And the virtue of one who learns wisdom from Fiqh or other types of knowledge, then acts upon it and teaches it
(47)
باب فَضْلِ مَنْ يَقُومُ بِالْقُرْآنِ وَيُعَلِّمُهُ وَفَضْلِ مَنْ تَعَلَّمَ حِكْمَةً مِنْ فِقْهٍ أَوْ غَيْرِهِ فَعَمِلَ بِهَا وَعَلَّمَهَا
Sahih Muslim 815 a

Salim narrated on the authority of his father (Ibn 'Umar) that the Messenger of Allah (ﷺ) said:

Envy is not justified but in case of two persons only: one who, having been given (knowledge of) the Qur'an by Allah, recites it during the night and day (and also acts upon it) and a man who, having been given wealth by God, spends it during the night and the day (for the welfare of others. seeking the pleasure of the Lord).
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَعَمْرٌو النَّاقِدُ، وَزُهَيْرُ بْنُ حَرْبٍ، كُلُّهُمْ عَنِ ابْنِ عُيَيْنَةَ، - قَالَ زُهَيْرٌ حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، - حَدَّثَنَا الزُّهْرِيُّ، عَنْ سَالِمٍ، عَنْ أَبِيهِ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ لاَ حَسَدَ إِلاَّ فِي اثْنَتَيْنِ رَجُلٌ آتَاهُ اللَّهُ الْقُرْآنَ فَهُوَ يَقُومُ بِهِ آنَاءَ اللَّيْلِ وَآنَاءَ النَّهَارِ وَرَجُلٌ آتَاهُ اللَّهُ مَالاً فَهُوَ يُنْفِقُهُ آنَاءَ اللَّيْلِ وَآنَاءَ النَّهَارِ ‏"‏ ‏.‏
Reference : Sahih Muslim 815a
In-book reference : Book 6, Hadith 322
USC-MSA web (English) reference : Book 4, Hadith 1777
  (deprecated numbering scheme)