وَلَا تَمُدَّنَّ عَيۡنَيۡكَ إِلَىٰ مَا مَتَّعۡنَا بِهِۦۤ أَزۡوَٲجً۬ا مِّنۡہُمۡ زَهۡرَةَ ٱلۡحَيَوٰةِ ٱلدُّنۡيَا لِنَفۡتِنَہُمۡ فِيهِۚ وَرِزۡقُ رَبِّكَ خَيۡرٌ۬ وَأَبۡقَىٰ (١٣١)
And strain not thine eyes toward that which We cause some wedded pairs among them to enjoy, the flower of the life of the world, that We may try them thereby. The provision of thy Lord is better and more lasting. (131)
TAFSEER FROM DR FARHAT HASHMI
Do not look in a prolonged manner at the people who have been given the dunya (money and spouses) these are just tests to see what people do when they are given the naimah of dunya. The rizq of this dunya is temporary.
The rizq e Rabbi (spiritual sustenance) given by Allah is more permanent and everlasting.
What ever Allah has given you in this dunya, be happy with it. Have Qanaat, for the best is yet to come and is permanent and forever.