The author – may Allah shower blessings on him – cited this hadeeth under the Chapter on the excellence of reciting the Qur'an in his book, Riyaadus Saaliheen. Ibn Umar - may Allah be pleased with him and his father- reported that the Prophet ﷺ said: 'Envy is justified in regard to two types of persons only.'
Scholars explained that envy is not permissible in any matter except these two. You would observe that people envy one another in regard to several matters of this life and the hereafter. For instance, some people envy a man whom Allah has blessed with wealth, children, family, mansions, cars and similar things. They would say: 'This one is fortunate' and similar statements.
A person may envy another for what Allah has bestowed upon him of health, honor and prestige among his people. Perhaps, people listen when he talks and follow him when he acts. So, he says: 'This one is fortunate.' However, the Prophet ﷺ explained that the only enviable person is he who possesses any of these two attributes:
The first: Allah has bestowed the Qur'an upon him and he is dutiful to it night and day. Allah has granted him the knowledge of the Qur'an; he memorizes it, understands it and applies it every time. He ponders over what Allah, Honored and Glorious, says about Salat. So, he says:
"And perform As-Salat (iqamat as-Salat)," (Al-Baqarah: 43)
Hence, he performs Salat.
He ponders over what Allah says about Zakat; so, he says:
“And give Zakat,” (Al-Baqarah: 43)
Hence, he gives out his Zakat.
What does He say about parents? Allah the most High said:
“Worship Allah and join none with Him in worship, and do good to parents...” (An-Nisa: 36)
And what does He say about joining the ties of kingship?
“Those who join that which Allah has commanded to be joined (that is, they are good to their relatives and do not sever the bond of kingship),” (Ar-Rad: 21)
So he joins the ties of kingship.
What does He say about the neighbors? He, the Exalted, said:
“(Do good) to the neighbor who is near of kin, the neighbor who is a stranger and the companion by your side ...” (An-Nisa: 36)
He continues in this manner.
So, you would observe that he upholds the Qur'an, night and day. This is real bounty and fortune because this is what will remain.
The second: Allah has bestowed wealth upon him and so he spends from it day and night; that is, in the path of Allah, and on what pleases Him, Honored and Glorious. He spends his wealth on anything pleasing to Allah. This includes building mosques, charity for the poor, assistance to the fighters in Allah's path, support for the
distressed among other things.
The important point is that he commits his wealth to whatever can earn him closeness to Allah every time. He is neither a miser nor a spendthrift who is extravagant and excessive in spending. Rather, he spends for the sake of Allah, following His command and His path, with sincerity in accordance to His legislation. This one should be envied.
As for the one who possesses some portion of this world and takes pleasure in it as animals relish their ration and then leave it, he should not be envied. Likewise, he should not be envied for what he does because the wealth will become worthless or it will destroy him. Only the one who spends in the path of Allah is worthy of envy.
This hadeeth is evidence that one must be dutiful to the Qur'an, day and night. One should always establish his deeds upon the Qur'an and follow its guidance. Likewise, it is obligatory for whoever has been granted wealth by Allah to pay its dues and uphold its obligations and spend it in good causes.
Allah alone grants success.