God is the all knowing God
He knows everything before we do he knew the words of his own stated in Romans says …
For the wages of sin is death, but the free gift of God is eternal life through Christ Jesus our Lord.
For God said this and knew that humans would sin this is why he sacrificed his only son for all his worldly children he knew there was no other way to save us and that death would take all of his own creation of man and women if he didn’t save each one of us quickly.
David says in Psalm 41:4
Psalm 41:4 New Living Translation (NLT)
“O Lord,” I prayed, “have mercy on me.
Heal me, for I have sinned against you.”
“41: 4 for I have sinned: In the context of the psalm, this is a general acknowledgment of sin and the need for God’s forgiveness and restoration (1 John 1: 9).”
— NKJV Study Bible, Full-Color, eBook: The Complete Resource for Studying God’s Word by Thomas Nelson
“41: 2, 3 Blessed on the earth refers to the acts of God’s goodness in a person’s life, including health, wealth, longevity, spiritual vitality, and harmony with God and people (Prov. 3: 1–4). bed of illness: The distress in this psalm is the psalmist’s serious physical illness.”
For God knew that there would be many different forms of dangers of death and sin in the world of his children he wanted to have way to pay ransom for it all and the cross of death of Jesus was how he could do that
Jesus paid all our debts in full yours and mine and all God’s children by the millions and more
Although we may sin the sin gets erased by the covering of Christ’s blood and death upon the cross he cleansed our sinful ways and made covenant with God to take all wrong of the world no mater what form it may be by his death. Erasing all our sins making our garments white and clean again nothing left in bloody stains for he took everything for you and me