Prophet Abraham - 14:8 "Moses said: "If you are ungrateful along with all who are in the earth, know that Allah is not in need, He is worthy of praise"."
If you do not give thanks and turn away and become ungrateful, Allah is rich to replace you with a people who will not be ungrateful:
The Cattle/6:133 Your Lord is Rich, the Owner of Mercy. If He wills, He will take you away and replace you with whom He wills after you, just as He brought you from the descendants of others.

Originator/35:15 O mankind, you are dependent on Allah, but Allah is not dependent on anyone, the Praised.
Originator/35:16 If He wills, He will take you away and bring in your place new creatures.

Muhammad/47:38 You are called to spend in the Way of Allah, but some of you are stingy. Whoever is stingy is stingy towards himself. Allah is rich and you are poor. If you turn away, He will replace you with another people, but they will not be like you.

The Table Spread/5:54 Believers, whoever turns away from his religion, know this: Allah brings a people whom He loves, and they love Him. They are humble towards the believers and strong and firm against the disbelievers. They strive hard in the way of Allah and do not fear the condemnation of those who condemn. This is the bounty of Allah; He gives it to whom He wills. Allah is Generous, Knowing.

The Cattle/6:89 Those are they to whom We gave the Book and wisdom and prophethood. If that people disbelieve in them, We will replace them with a people who will not disbelieve in them.