The Messenger of Allah ﷺ said, "There is no envy except in two cases. A man whom Allah has given wealth and empowered him to spend it in the cause of truth, and another whom Allah has given wisdom by which he judges and which he teaches to others."
حدثنا وكيع ويزيد أنبأنا إسماعيل عن قيس
قال رسول الله ﷺ لا حسد إلا في اثنتين رجل آتاه الله مالا فسلطه على هلكته في الحق وآخر آتاه الله حكمة فهو يقضي بها ويعلمها