It seems to be a "biblical folk legend" (biblische Volkslegende).
see google book, go to "Page 61".
btw, Carl Loewe has written music to many poems by Friedrich Rückert, who is a brother of one of my great-great-great-great-father ...
Greetings from Munich,Germany.
Andreas a/k/a MudGuard