Yes he had sorrow knowing the end from the beginning.
He did not change the salvation program .He turned his sorrow into Joy.
2 Corinthians 7:10 For godly
sorrow worketh repentance to
salvation not to be repented of: but the
sorrow of the world
worketh death.
Repentance is a two fold work of God .Not of powerless dying mankind of our own self . First he gives us ears to hear, It turns us giving us power to perform the good works He works in us, with us (Philippian 2:13)
In the parable below he uses a Bullock as a unclean animal to represent non-believers
Jeremiah 31:18-20King James Version18 I have surely heard Ephraim bemoaning himself thus;
Thou hast
chastised me, and
I was chastised, as a bullock unaccustomed to the yoke:
turn thou me, and
I shall be turned; for thou art the Lord my God. Surely
after that
I was turned, I
repented; and after that I was instructed, I smote upon my thigh: I was ashamed, yea, even confounded, because I did bear the reproach of my youth.
Eternal God does all the turning.