The Stories - 28:77 Seek the abode of the Hereafter with the favors Allah has bestowed upon you, without forgetting your share in this world. Do good to Allah as He has done good to you. Do not seek to make corruption in the earth. Allah does not love the corrupters.
In the context of verses 77, 78...82; The ungrateful personality who does not remember Allah in the blessings bestowed upon him, who takes his own desires and nafs as gods:
The Stories/28:76 "Karun was of the people of Moses, but he betrayed them and oppressed them. We had given him such treasures that their keys were too heavy even for a strong people. His people said to him: "Do not be spoiled, Allah does not love the spoiled."
The Stories/28:77 Seek the abode of the Hereafter with the favors Allah has bestowed upon you, without forgetting your share in this world. Do good to Allah as He has done good to you. Do not seek to make corruption in the earth. Allah does not love the corrupters.
The Stories/28:78 "He said, "All this has been given to me because of my knowledge and skill."Does he not know that Allah destroyed many generations before him who had greater power and numerical majority than he? The criminals will not be asked about their crimes."

Explained in Detail/41:50 "When We give him a taste of mercy from Us after his distress, he says: "This belongs to me. I do not think that the end of the world will come. And if I am returned to my Lord, there are better things for me in His Presence."We will certainly inform the disbelievers of the true nature of what they used to do. We will make them taste a severe torment."

The Cave/18:32 Give them the example of two men: We gave one of them two vineyards, which We surrounded with date palms and planted other crops between them.
The Cave/18:33 We placed a river between them, so both vineyards yielded their fruit bountifully.
The Cave/18:34 "Now he had a crop! So he said to his companion, "I am richer than you and have more men."
The Cave/18:35 "So he entered his vineyard in self-persecution and said, "I do not think it will ever perish."
The Cave/18:37 "His friend who spoke to him said to him: "Do you deny your Lord, Who created you from dust, a tiny drop, and formed you into a man?"
The Cave/18:36 "I do not think the end of the world will come, and if I am returned to my Lord, I will find something better there."
The Cave/18:38 "As for me. Allah is my Lord, and I do not associate anything with my Lord."
The Cave/18:39 "Should you not have said as you entered your vineyard, ´This is a gift from Allah, and strength is only with Allah´? You may see that I have less money and children than you, but"
The Cave/18:40 "Perhaps my Lord will give me a better garden than yours, and perhaps He will send a calamity on your garden from the sky and it will turn into a dry land.
The Cave/18:41 "Or its water will sink to the bottom and you will not find water again."
The Cave/18:42 "Then its produce was destroyed. And he began to mourn for the labor he had put into his vineyard, whose arbors were piled upon it, and he said, "I wish I had not associated partners with my Lord."
The Cave/18:43 He could not find any support to help him except Allah. Nor could he save himself.