1 Chronicles 16:20

And when they went from nation to nation, and from one kingdom to another people;

Cross-reference

Genesis 12:10 recounts Abram going to Egypt due to famine, a concrete example of wandering between nations.

Genesis 46:6 describes Jacob's family migrating to Egypt, a direct example of wandering from nation to nation.

Genesis 20:1 shows Abraham sojourning in Gerar, another instance of patriarchal wandering between kingdoms.