So do you ~think~ God had a plan?
An angel of the LORD came down and told Zacharias that he would name his child John (Luke 1:13). The angel Gabriel was sent from God to tell Mary she will bear a son, and she will call Him Jesus (Luke 1:31) These are wholly different situations than someone being born with one name and then somebody else coming along and changing it.
And besides, none of this is dealing with my original question; When God chose Moses to lead the Israelites out of Egypt, at that time did He know that Moses would strike the rock twice and incur the punishment of the LORD and be forsaken to enter Canaan?
This is the answer to your question..It is obvious to anyone that reads the word with understanding and discernment that God knew from before the foundation of the earth that a man naned Joshua would lead Hid people into the promised land..I have shown that to you in Gods words..
You show a disregard for of prophecy and typology.
Joshua a type of Christ
Joshua, then, represents Christ, not as coming down in person to take possession of the earth, but as leading His people through the power of the Holy Ghost, who acts and dwells in the midst of this people. Yet in Joshua, as in all other typical persons, those errors and sins are found which betray the weakness of the instrument, and the fragility of the vessel in which, for the time, God has condescended to put His glory.
God knew Joshua before the foundation of the earth and He elected him to lead His people into a land flowing with milk and honey...just as He had foreordained and told us prophetically under the authorship of the Holy Ghost