God knew before the creation of the world, every person He would create and what they would choose, the good and the bad. Jesus knew before the creation of the world that out of love, He would sacrifice Himself for us. And He knew who would repent and be saved and who would not. Repentance is a gift that reconciles us to God despite our imperfections, by the merits of Christ’s suffering and death.
(Romans 8:29-30) For those God foreknew he also predestined to be conformed to the image of his Son, that he might be the firstborn among many brothers and sisters. And those he predestined, he also called; those he called, he also justified; those he justified, he also glorified.
Those He foreknew are those He knew would chose Him and turn from their evil ways and be saved. By His grace, He predestined us and called us by His Holy Spirit to Himself, He justified us by His death out of His great love and mercy, and He will glorify us with Christ at the Last Judgement.
Yes, God knows all of our choices before we make them and all of our sins, past, present, and future. And He died so that we could choose to be free from them. Christ did not save the non-repentant when He died. He says in (Luke 13:3) “But unless you repent, you too will all perish.” We have free will, and we have a choice. God has mercy for those who seek Him and turn from their sins.
Christ calls you to repent. Matthew 4:17 says “From that time on Jesus began to preach, “Repent, for the kingdom of heaven has come near.” We must accept God’s grace, surrender to the promptings and guidance of His Holy Spirit, and turn to Him with sorrow for our sins. He waits for us with open arms, but we don’t have forever to choose.
(Revelation 3:20) “Behold, I stand at the door, and knock: if any man hear my voice, and open the door, I will come in to him, and will sup with him, and he with me.“
We must let Him in! Repentance is a key step.