The story is called The Sun, The Moon, and Talia. It had several variants from the first-ever documented story. One of the versions is quite popular among kids because of its representation in Disney.
The basic story is about a baby girl named Talia, who was born to a very powerful ruler. A wise man of the kingdom made a prophecy that the girl will meet her death from a simple flax splinter. Thus, the king made a huge decision to remove all the flax and hemp from the kingdom. Instead of instructing his daughter to never go near flax or wear any cloth made out of it, the ruler took this huge step.
When Talia was a little older, she noticed an old woman sitting outside of her window and spinning flax on the spindle. It was something that she had never seen before, thus out of her curiosity, she went down and convinced the woman to allow her to stretch the flax. Suddenly, a splinter from the flax got under her fingernail, and Talia died.
But instead of burring Talia, her father made her dressed in her most expensive and beautiful outfit. He adorned her daughter for a while and then left her in one of his palaces in the forest, locked it up, and abandoned it for life.
Later after some years, a king stumbled on the abandoned estate on one of his hunting trips. He wanted to retrieve his falcon that somehow flown inside the estate. He banged the door for some time, but after receiving no answer from the other side, he climbed in through the window to bring back his falcon.
Up to this point, is the Disney version of the story of Sleeping Beauty. However, the ending of the true story is way too much different than you must have already heard about.
The true ending of the story
After entering the estate, the king looked for some time but couldn’t find anyone but a beautiful young woman. He, even after his best efforts couldn’t wake her up. So out of the fire of love in his eyes, he picked her up and took her to a couch. After fulfilling his thirst for love, he left her there and went back to his kingdom.
He completely forgot about this incident but Talia became pregnant and gave birth to twin babies and cared for them with the help of the fairies. Once, one of her babies sucked out the splinter out of Talia’s finger, and she woke up. She named the kids after “Sun” and “Moon” as the birth of her babies was mysterious, just like the origin of the Sun and the Moon.
Later, the king decided to go back to the abandoned estate to look for the girl. Although, this time he found her awake. He explained everything to her about what happened between them, as a result of which she got pregnant and the rest of the story. Talia, instead of going to the law, decided to fall in love with him, and the king also accepted that he loved her too.