Chitragupta is a Hindu god assigned with the task of keeping complete records of actions of human beings on the earth and punish or reward them according to their Karmas. He is god of justice therefore known as Dharmaraja. Upon their death, Chitragupta has the task of deciding heaven or the hell for the humans, depending on their actions on the earth. Chitragupta Maharaj is the seventeenth Manasputra of Lord Brahma. Chitragupta is believed to be created from Bramha's soul & mind and thus, alloted the right to write Vedas like Brahmins with the duty of a Kshatriya.
In scriptures
According to the Vedic scriptures, the souls of men after death receive rewards and punishments according to their sins and virtues, and hence it is believed that good and bad deeds of men are not destroyed. The souls of men after death go to Yamapuri, which is presided over by the deities called Yamas who keep records of men's actions and accordingly give them their dues. The principal Yama is called Yamaraja or Dharamaraja, that is, the ruler of Yamapuri or the king of laws.
the god of death seated on a throne; to the left stands a demon. To the right of Yama sits Chitragupta, assigned with keeping detailed records of every human being and upon their death deciding how they are to be reincarnated, depending on their previous actions.
The Yama Samhita, an extract from the 9th chapter of Ahilya Kamdhenu, a work of Hindu Law, says that Dharamaraja complained to Brahma about his difficulties in performing his most responsible duties of keeping records of the deeds of men and doing justice to them. Brahma went into meditation. Chitragupta sprang from his body and stood before him bearing an inkpot and a pen. The god Brahma said: "Because you are sprung from my body, therefore you shall be called Kayastha and as you existed in my body unseen I give you the name of Chitragupta. Let the Kshatriya dharma be followed by you and your progeny." He then assumed charge of Yamapuri. Dharmaraja married his daughter Irawati to Chitragupta and Sraddhadeva Manu, son of Surya 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 subdivisions of the Chitraguptavansi Kayasthas, namely Saxena, Mathur, Gaur, Nigam, Ashthana, Kulshrestha, Suryadwaja, Bhatnagar, Ambastha, Shrivastava, Karna and Vaalmik.
Padma Purana after stating the legend says: "Chitragupta was placed near Dharamaraj to register the good and evil actions of all sentient beings, that he was possessed of supernatural wisdom and became the partaker of sacrifices offered to the gods and fire. It is for this reason that the twice-born always give him oblations from their food. As he sprang from the body of Lord Brahma he was called Kayastha of numerous gotras on the face of the earth."
Bhavishya Purana states that God, the Creator, gave the name and duties of Chitragupta as follows: Because you have sprung from my body, therefore, you shall be called Kayastha and shall be famous in the world by the name of Chitragupta. Oh my son, let your residence be always in the region of the God of justice for the purpose of determining the merits and demerits of men.
Vignana Tantra says the same thing.
The same is the enjoinment of Brahma to Chitragupta according to Brihat Brahma Khanda. He was named Kayastha having sprung from the body of Brahma. He was directed to perform all sanskars and to have writing as his profession.
Garuda Purana describes the imperial throne of Chitragupta in Yamapuri holding his Court and dispensing justice according to the deeds of men and maintaining their record, in the following words:.
The Mahabharata recites the teaching of Chitragupta requiring men to do virtuous and charitable acts and performing Yagya, saying that men are rewarded or punished according to their good or bad deeds.
Legends
Chitragupta came into being after Brahma, the creator, having established the four varnas — Brahmin, Kshatriya, Vaishya and Shudra — ordained Dharamraj to keep record of the deeds — good and evil — of all life-forms born and yet to be born on earth, in the heavens above and in the lands below. Dharamraj, however, complained, "O Lord, how can I alone keep record of the deeds of the beings born into 84 lakh yonis in the three worlds" Brahma went into meditation for 11,000 years and when he opened his eyes he saw a man holding pen and ink-pot in his hands and a sword girdled to his waist. Brahma spoke: Brahma then enjoined him to dispense justice and punish those who violated the dharma. In the Garuda Purana, Chitragupta is hailed as the "giver of letters". In the legends of Chitragupta as well as in the Vedas, he is referred to as the greatest king, while the rest are "Rajakas," or little kings. चित्र इद राजा राजका इदन्यके यके सरस्वतीमनु। पर्जन्य इव ततनद धि वर्ष्ट्या सहस्रमयुता ददत॥ RIG VEDA Book 8/ Hymn 21/ Stanza 18 The Rig Veda mentions an invocation to be made to Chitragupta before offering sacrifice. There is also a special invocation to Chitragupta as Dharmraj to be made at the performance of shradh or other rituals. "Om tat purushaya vidmahe Chitragupta dhimahi tena lekha prachodayata." Chitragupta is the Athi Devathai for Ketu, one of the Navagrahas, and those who worship Chitragupta, would be bestowed with prosperity. Also the evil effects of Ketu during its transit period would be mitigated.
Temples
There are numerous temples dedicated to Chitragupta. Notable examples include:
Chitragupta temple, Kanchipuram, Tamil Nadu - the oldest temple in South India dedicated to Chitragupta. Archaeologist have confirmed based on the inscriptions that the temple was built during the 9th century by the Medieval Cholas.