Notice that this is exactly what God did with Abraham, creating calamities that forced Abraham to seek relief in the palaces of kings. Abraham tries to protect himself from the threat of death, because of the rulers coveting Sarah, by lying that she is not his wife, but it is God who saves from those dangers. Where Abraham differs from Israel is that he learns that God is trying to teach him to trust, because the only way people will listen to godGod's command to live selfless lives, is if they see God protecting those who obey this command. Abraham realises, also, that this is how the promise to him that he would be a blessing to the world would be fulfilled. So when God asks him to offer up Isaac as a sacrifice, Abraham believes people will be blessed by seeing God save, because he fully expects God to return Isaac back alive to him.
People are motivated to live selfless lives, lives of picking up the cross, in order to motivate others to gather, like they gather, to bring back God’s sheep.
Another point I read, in a thread on this forum., is that God used Israel as an oracle bearer, to manifest information that would help believers to recognise the Messiah, and help them obey him. Circumcision was a prophecy that the penalty for non performance of the Sinaitic Covenant would be paid by Messiah, just as the act of Abraham walking between the halves of the animal signified what the penalty was, for not fulfilling the covenant. The penalty was paid by Christ, because Scripture says, “Cursed is the One who is hung on a tree”.
So what was the prophecy manifested in the command to speak to the Rock.? If we go back, we read that Moses struck the rock on a previous occasion, and caused water to flow out. This prophecy was fulfilled when israel struck the rockRock on the crossCross, causing the holyHoly Spirit to be given. However, since israelIsrael was made a vessel of dishonour, the Holy Spirit was given to non Jews:
Did God’s word fail? No, because God also commanded Moses to speak to the Rock at meribahMeribah, to get water a second time. This was a prophecy that Israel would also receive the Holy Spirit, when she confessed, “Blessed is the One who comes in the name of the Lord”! Unfortunately Moses failed to deliver the oracle, so that was also counted as a sin by God!
All Scripture from the NASB.