Now I want you to know, brothers, that our fathers were all under the cloud, all passed through the sea, and all were baptized into Moses in the cloud and in the sea. They all ate the same spiritual food, and all drank the same spiritual drink. For they drank from a spiritual rock that followed them, and that rock was Christ. But God was not pleased with most of them, for they were struck down in the desert.
Now these things became examples for us, so that we will not desire evil as they did. Don’t become idolaters as some of them were; as it is written, The people sat down to eat and drink, and got up to play. Let us not commit sexual immorality as some of them did, and in a single day 23,000 people fell dead. Let us not tempt Christ as some of them did, and were destroyed by snakes. Nor should we complain as some of them did, and were killed by the destroyer.
Now these things happened to them as examples, and they were written as a warning to us, on whom the ends of the ages have come. Therefore, whoever thinks he stands must be careful not to fall! No temptation has overtaken you except what is common to humanity. God is faithful and He will not allow you to be tempted beyond what you are able, but with the temptation He will also provide a way of escape, so that you are able to bear it.
(1 Corinthians 10:1-13 Holman Christian Standard Bible®©)
Paul wrote that the things that happened to the descendants of Israel from the time Yahweh called them out of Egypt under the leadership of Moses through the time that He took them into the land occupied by the descendants of Canaan under the leadership of Joshua, happened, and were written down, to admonish us.
“Indeed, ask about the earlier days that preceded you, from the day God created man on the earth and from one end of the heavens to the other: Has anything like this great event ever happened, or has anything like it been heard of? Has a people ever heard God’s voice speaking from the fire as you have, and lived? Or has a god ever attempted to go and take a nation as his own out of another nation, by trials, signs, wonders, and war, by a strong hand and an outstretched arm, by great terrors, as the Lord your God did for you in Egypt before your eyes?
You were shown these things so that you would know that the Lord is God; there is no other besides Him. He let you hear His voice from heaven to instruct you. He showed you His great fire on earth, and you heard His words from the fire. Because He loved your fathers, He chose their descendants after them and brought you out of Egypt by His presence and great power, to drive out before you nations greater and stronger than you and to bring you in and give you their land as an inheritance, as is now taking place.
Today, recognize and keep in mind that the Lord is God in heaven above and on earth below; there is no other. Keep His statutes and commands, which I am giving you today, so that you and your children after you may prosper and so that you may live long in the land the Lord your God is giving you for all time.”
(Deuteronomy 4:32-40 Holman Christian Standard Bible® ©)
Moses wrote that the process Yahweh used to create a nation from the Egyptian slaves who were descendants of Israel included forming them “by trials, signs, wonders, and war, by a strong hand and an outstretched arm, by great terrors“. I infer that He is using the same powers of process to form a Kingdom of priests of us, as He translates us out of the power of darkness into His marvelous light.