The Yama Samhita which is an extract from the 9th Chapter of Ahilya Kamdhenu, a work of Hindu Law, says that Dharamaraja complained to Lord Brahma about his difficulties in performing his most responsible duties of keeping records of the deeds of men and doing justice to them. Lord Brahma went into meditation. Shree Chitragupta sprang from his body and stood before him bearing an inkpot and a pen. The God Brahma (Creator) said: “Because you are sprung from my body (kaya), therefore you shall be called Kayastha and as you existed in my body unseen I give you the name of Chitragupta.” He then assumed charge of Yamapuri. Dharma Sharma married his daughter Irawati to Chitragupta and Manuji, son of Surya (the Sun) married his daughter Sudakhina to him.” Chitragupta had eight sons from the former and. four from the latter and these twelve sons became the progenitors of the twelve sub−divisions of the Chitraguptavansi Kayasthas, namely, Mathur, Gaur, Nigam, Ashthana, Kulshretha, Suryadwaja, Bhatnagar, Srivastava,Ambastha, Saxena, Karana and Vaalmik.