"to wander about" in Spanish

Context examples for "to wander about" in Spanish(!) These sentences come from external sources & may not be accurate. Therefore, we are not responsible for their content.
He (the Lord) said, "Then, verily, this land is forbidden them for forty years; in bewilderment shall they wander about in the earth; so grieve not yourself for these sinful people.
Dijo Él: “Pues, en verdad, esta [tierra] les estará prohibida durante cuarenta años, mientras vagan por la tierra de un lado para otro, desconcertados; y no te aflijas por esas gentes malvadas.