The Prophet (may Allah's peace and blessings be upon him) pointed out in this Hadīth that envy is of different types. There is a type that is blameworthy and unlawful under Shariah; that is when a person wishes for the removal of some blessing from his brother. The permissible type of envy is when one sees someone enjoying a worldly blessing and he hopes to have the same for himself. There is also a praiseworthy type of envy which is recommended under Shariah. It is when one sees someone enjoying a religious blessing and wishes to have the same thing for oneself. This is what the Prophet (may Allah's peace and blessings be upon him) intended by his statement: "There should be no envy except in two (cases)". This means that envy has different types, and its ruling differs according to its type. It is not praiseworthy and recommended by Shariah except in two cases: 1. When there is a wealthy righteous man whom Allah has given lawful wealth, which he spends in the cause of Allah, the Almighty. So one hopes to be like him, and envies him, the kind of envy that is free from malice, for that blessing. 2. When there is a knowledgeable man whom Allah has given beneficial knowledge which he acts upon, teaches to others, and judges between the people according to. So, he wishes to be like him.
كنوز رياض الصالحين، تأليف: حمد بن ناصر بن العمار ، الناشر: دار كنوز أشبيليا، الطبعة الأولى: 1430 هـ بهجة الناظرين، تأليف: سليم بن عيد الهلالي، نسخة الكترونية، لا يوجد بها بيانات نشر. نزهة المتقين، تأليف: جمعٌ من المشايخ، الناشر: مؤسسة الرسالة، الطبعة الأولى: 1397 هـ، الطبعة الرابعة عشر 1407 هـ رياض الصالحين، تأليف : محيي الدين يحيى بن شرف النووي ، تحقيق: د. ماهر بن ياسين الفحل ، الطبعة: الأولى، 1428 هـ صحيح مسلم، تأليف: مسلم بن الحجاج النيسابوري، تحقيق: محمد فؤاد عبد الباقي الناشر: دار إحياء التراث العربي – بيروت صحيح البخاري، نشر: دار طوق النجاة (مصورة عن السلطانية بإضافة ترقيم محمد فؤاد عبد الباقي)، الطبعة: الأولى، 1422ه شرح رياض الصالحين، تأليف: محمد بن صالح العثيمين، الناشر: دار الوطن للنشر، الطبعة: 1426 هـ منار القاري، تأليف: حمزة محمد قاسم، الناشر: مكتبة دار البيان ، عام النشر: 1410 هـ.