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.
How does Allah bring a people whom He loves?
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.