Hi! I remember hearing or reading it while I was 6-7 years old. It's a kind of fairytale. I don't really know from where it originates (I am from Slovenia), so maybe in other countries it exists in some other version.
That was a nice story you posted. Where did you get that?