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