Or, it could be similar to this (but I doubt it):
In the book of Jeremiah, the Lord referred to my servant Nebuchadnezzar three times (Jer. 25:9; 27:6; 43:10). Old Testament writers generally used the title Servant of Yahweh to designate persons who had a special relationship with God and who were obedient to Gods will in the life of His people.
Jeremiah designated Nebuchadnezzar the Servant of God as a way to present Babylons king as the individual God appointed to have dominion over the nations and the one who would act as the instrument of Gods justice (Jer. 25:8-11). Because Nebuchadnezzar was acting as Gods agent, Jeremiah declared to the people that rebellion against Nebuchadnezzar was rebellion against God.
If the Koran is inspired, then the Bible is full of distortions and lies.
(Particularly, because the Koran insists that it was Ishmael whom Abraham took to be sacrificed, not Isaac; and hence all the blessings of Issac fall to Ishmael — and not to Israel.)
Your #3 was a perfect description of what and why it happened (In my opinion and understanding of Jeremiah)
The Egyptian Pharaoh served God’s purpose too.