As the Shiva Purana tells it
Shiva Purana, Rudra Samhita, Yuddha Khanda 47, 48 and 50 · Kashi and the war with Andhaka · 3 min read
Long before the war, the sage Bhargava of the line of Bhrigu went to Kashi, set up a linga there and dug a well in front of it. For five thousand years he bathed the stone and heaped it with flowers. When Shiva still did not come, he made his vow harder and for a thousand years more lived on nothing but smoke.
Then Shiva stepped out of the linga, brighter than a thousand suns. He gave the sage a knowledge he had given to no one else, not even Vishnu or Brahma: the Mritasanjivani, the words that wake the dead. He made him the brightest of the planets. And he said something the sage did not yet understand. One day Bhargava would be born from his body, as his son.

Years later the Asura Andhaka went to war against Shiva's hosts and began to lose. He slipped away from the field alone and went to his teacher.
"You won a great knowledge with your penance. Save us. Bring our dead back."
Bhargava was torn. The knowledge had come from Shiva, and now it was wanted against Shiva's own army. But a teacher must protect those who come to him for shelter. "I won it for the good of the Danavas," he said. "Before the hour is out they will stand again."
He fixed his mind on Shiva and spoke the words over each fallen Asura in turn. They rose as if from sleep, weapons in their hands, and roared like thunderclouds.
Nandi, the leader of Shiva's hosts, went to his lord in a rage. "Every enemy we kill comes back from Yama's house. How are we to win?"
Shiva laughed. "Go into their army and bring me that brahmin, the way a vulture carries off a quail."
Nandi bellowed like a bull and charged. Through spears, nooses and hurled boulders he reached the teacher and snatched him up as the great Sharabha snatches up an elephant. Bhargava's cloth slipped and his hair came loose. The Asuras threw thunderbolts after them, and Nandi burned them in the air with fire from his mouth.
"Lord, here is Bhargava."
Shiva took him like a worshipper's offering, said not a word, and put him into his mouth as if he were a fruit. The Asuras cried out in dismay.
Inside the god, Bhargava looked for a way out. He found worlds instead. He saw the seven worlds below the earth, and the worlds of Brahma, Vishnu, Indra and the Sun, the dancers of heaven, and even the battle still raging outside. For a hundred years he wandered and found no door.
At last he gave himself to Shiva's own yoga and repeated a mantra, and he came out of the god's body as the god's own seed.
He bowed low. Shiva laughed. "You came out of me as my seed, so your name is Shukra. You are my son. Go where you like."
Parvati took him as her son as well. Shukra praised the god of a thousand forms, bowed once more, and went back into the Danava army, shining among them like the moon among clouds.
As the Mahabharata tells it: the treasure of Kubera
Mahabharata, Shanti Parva 290 (Ganguli) · 1 min read
On his bed of arrows, Bhishma is asked by Yudhishthira why the sage Ushanas works against the gods, why he is called Shukra, and why his planet never climbs to the middle of the sky.
Bhishma answers that it began with money. Kubera, lord of the Yakshas, kept Indra's treasury. Ushanas, a master of yoga, entered Kubera's body, took hold of his will from inside, and walked off with all his wealth. Kubera went to Shiva in tears.
Shiva's eyes went red. He seized his lance. "Where is he?"
From far away Ushanas knew what was coming. He weighed running, hiding and going to meet the god, and chose none of them. He sat down on the tip of Shiva's lance. Nobody can throw a spear at a man sitting on its point, so Shiva bent the shaft in his hands into a bow, and that bow has been called Pinaka ever since. Then he set Ushanas on his palm and swallowed him.

Shiva went down into the waters and stood there unmoving, like a post, for ages beyond counting. Inside him Ushanas grew greater by his own penance. When at last he begged for mercy, Shiva had closed every way out but one.
"Leave by the path my seed takes."
Scorched by the god's heat, Ushanas found that path and came out. That is why he is Shukra, the bright one and the seed, and why his planet stays low.
Seeing him come out shining, Shiva raised the lance again. Uma stood in front of it.
"He came out of you. He is my son now. You will not kill him."
Shiva smiled and let him go wherever he pleased, and Ushanas bowed to them both and went.






