God's dealings with His people, Israel, in the wilderness is described in Ezekiel 20:34-37

" And I will bring you out from the people, and will gather you out of the countries wherein ye are scattered, with a mighty hand, and with a stretched out arm, and with fury poured out.
And I will bring you into the wilderness of the people, and there will I plead with you face to face.
Like as I pleaded with your fathers in the wilderness of the land of Egypt, so will I plead with you, saith the Lord GOD.
And I will cause you to pass under the rod, and I will bring you into the
bond of the covenant:"