This sentence is not literal, not describing a wandering person, but expressing a mood and state.
"If God loves a person, let her wander" comes from the poet Rumi's poem Andara. The original text is as follows: "God loves a person, so let him wander around and run around. You can live anywhere under a sky."