Before revision: It is classified as Aarne-Thompson M223 and likely has an Oriental origin.
After revision: It is classified in the Motif-Index of Folk-Literature as motif M223 and likely has an Oriental origin.