Joshua said to the people, Sanctify yourselves; for tomorrow Yahweh will do wonders among you.
Yes, God's grace took them over, all right, but note the part that Israel themselves played in this tremendous blessing.  (See further comment on sanctification in this series, Vol. 2, Exodus, pp. 160,261.)