The Mahabharata (Anusasan Parva, Chap. 130) recites the teaching of Shree 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.