The Cattle - 6:6 Do they not see how many generations We destroyed before them? We settled them on the earth in a way We did not settle you. We showered them with blessings and endowed their land with rivers, but We destroyed them because of their sins and raised up other generations after them.
Then how did He raise other generations?
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.