According to the Hindu 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. God has appointed Dharamraj /Dharmrai to judge the deeds of souls.
Read More….. References from Granth
There are scriptural references that we have also. Per my little understanding, Guru saheb have employed these mythological figure
s for instilling fear in the mind of seekers so that righteousness is inculcated.
Other related name is Chitra-Gupt also. These are not synonyms.
The references has appeared thus:
Function of Dharamraaj
God having created animals recorded their names, and appointed Dharmraj to judge their acts.
At His own court the real truth is adjudged; He separateth and removeth those who are attached to mammon.
There the false find no place: they go to hell with blackened faces.
They who are imbued with Thy name win; the deceivers lose. God recorded names and appointed Dharmraj to record acts. [ang 220- Seat of Dharamraaj
In fear the winds and breezes ever blow
In fear flow hundreds of thousands of rivers
In fear fire performeth its forced labour;
In fear the earth is pressed by its burden
In fear Indar moveth headlong: in fear sitteth Dharmraj at God's gate
In fear is the sun, in fear the moon; they travel millions of miles without end;Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=38688Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=38688
in fear are the Sidhs, the Budhas, the demigods, and the Naths; in fear are the stars and the firmament;
In fear are wrestlers, very mighty men and divine heroes;
In fear cargoes of men come and go.
God hath destined fear for every one; Nanak, the Formless One, the True, is alone without fear.[ang 222-
[1. The fear of God is, of course, meant.
2. Literally--God hath written the destiny of fear on tile heads of all.]
Bhul Chuk Mauf