Ibn Umar reported: The Messenger of Allah, peace and blessings be upon him, said, “There is no envy but in two cases: a man whom Allah has given this Book and he stands to recite it by night and day, and a man whom Allah has given wealth and he spends it in charity by night and day.”
Source: Ṣaḥīḥ al-Bukhārī 7529, Ṣaḥīḥ Muslim 815
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
Imam Ibn Hajar commented, “Envy is to wish for blessings to be removed from the blessed. Some limited this to mean a person only wishes to have those blessings for himself, but the truth is that it is even broader. Its cause is that human nature is disposed to loving superiority over one’s own kind, so when a person sees another enjoying what he does not have, he loves for that to be taken away—either so that he may rise above him, or simply to be equal to him. The envier is blameworthy if he acts upon that impulse by determined resolve, words, or actions. Whoever experiences such thoughts should abhor it, just as he would abhor things in his human nature that love prohibited matters. They made an exception in the case of an unbeliever or an evildoer who uses a blessing to disobey Allah Almighty. This, then, is the ruling on envy according to its reality.”
Source: Fatḥ al-Bārī 1/166
عَنِ ابْنِ عُمَرَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ لَا حَسَدَ إِلَّا عَلَى اثْنَتَيْنِ رَجُلٌ آتَاهُ اللَّهُ هَذَا الْكِتَابَ فَقَامَ بِهِ آنَاءَ اللَّيْلِ وَآنَاءَ النَّهَارِ وَرَجُلٌ آتَاهُ اللَّهُ مَالًا فَتَصَدَّقَ بِهِ آنَاءَ اللَّيْلِ وَآنَاءَ النَّهَارِ
7529 صحيح البخاري كتاب التوحيد باب قول النبي صلى الله عليه وسلم رجل آتاه الله القرآن فهو يقوم به آناء الليل وآناء النهار
815 صحيح مسلم كتاب صلاة المسافرين وقصرها باب فضل من يقوم بالقرآن ويعلمه
قال ابن حجر العسقلاني الْحَسَدُ تَمَنِّي زَوَالِ النِّعْمَةِ عَنِ الْمُنْعَمِ عَلَيْهِ وَخَصَّهُ بَعْضُهُمْ بِأَنْ يَتَمَنَّى ذَلِكَ لِنَفْسِهِ وَالْحَقُّ أَنَّهُ أَعَمُّ وَسَبَبُهُ أَنَّ الطِّبَاعَ مَجْبُولَةٌ عَلَى حُبِّ التَّرَفُّعِ عَلَى الْجِنْسِ فَإِذَا رَأَى لِغَيْرِهِ مَا لَيْسَ لَهُ أَحَبَّ أَنْ يَزُولَ ذَلِكَ عَنْهُ لَهُ لِيَرْتَفِعَ عَلَيْهِ أَوْ مُطْلَقًا لِيُسَاوِيَهُ وَصَاحِبُهُ مَذْمُومٌ إِذَا عَمِلَ بِمُقْتَضَى ذَلِكَ مِنْ تَصْمِيمٍ أَوْ قَوْلٍ أَوْ فِعْلٍ وَيَنْبَغِي لِمَنْ خَطَرَ لَهُ ذَلِكَ أَنْ يَكْرَهَهُ كَمَا يَكْرَهُ مَا وُضِعَ فِي طَبْعِهِ مِنْ حُبِّ الْمَنْهِيَّاتِ وَاسْتَثْنَوْا مِنْ ذَلِكَ مَا إِذَا كَانَتِ النِّعْمَةُ لِكَافِرٍ أَوْ فَاسِقٍ يَسْتَعِينُ بِهَا عَلَى مَعَاصِي اللَّهِ تَعَالَى فَهَذَا حُكْمُ الْحَسَدِ بِحَسَبِ حَقِيقَتِهِ
1/166 فتح الباري بشرح البخاري كتاب العلم باب الاغتباط في العلم والحكمة