God said to Moses, “I will show mercy to anyone I want to show mercy to. I will show pity to anyone I choose.” So God will choose anyone He decides to show mercy to, and His choice does not depend on what people want or try to do.
Romans 9:15-16 (ERV)

But God, being so very rich in Mercy, because of His Great and Wonderful Love with which He loved us, even when we were spiritually dead and separated from Him because of our sins, He made us spiritually alive together with Christ (for by His Grace, His undeserved Favor and Mercy, you have been saved from God’s Judgment).
Ephesians 2:4-5 (AMP)

The Lord’s Kindness never fails! If He had not been Merciful, we would have been destroyed.
Lamentations 3:22 (CEV)