 It is Aarne-Thompson type 779, divine rewards and punishments.Another tales of this type are"The Star Money" and "Frau Trude".Once upon a time there was a child who was wilful and would not do what her mother wished.