Parvati asked Lord Shiva about the reason Chandra Deva had to install a Shivalinga at Prabhas Kshetra. Lord Shiva replied that Daksha had got married twenty seven of his daughters to Chandra Deva. Chandra Deva was very attached to Rohini, who was one of them and neglected others. When Daksha came to know about this he cursed Chandra Deva as the result of which he lost his luster and started waning day by day. The worried Chandra Deva did an austere penance for thousand of years to please Lord Shiva. At last Lord Shiva became pleased and appeared before him. Subsequently, Chandra Deva got a divine Shivalinga installed by Brahma and worshipped it for thousand of years. Lord Shiva appeared once again and expressed his willingness to fulfill any wish Chandra Deva expressed. Chandra Deva requested Lord Shiva to dwell in the very Shivalinga he had been worshipping till then. Lord Shiva revealed to him that there was no question of dwelling in the Shivalinga as he had never abandoned it in the first place. Chandra Deva had regained his luster on account of his arduous penance. Lord Shiva blessed him and said- ‘Since you have regained your luster (Prabha) by dint of your austere penance, this holy place will become famous as ‘Prabhas Kshetra’. This linga would be named upon you and become famous as Somnath Linga.’
Having blessed Chandra Deva thus, Lord Shiva disappeared. Later on Chandra Deva instructed Vishwakarma to build a magnificent temple at the sight. He also built a city nearby so that all the priests who were supposed to supervise the rituals of worship could live there.