In Ancient Egypt, it was believed that upon death, ones fate in the afterlife was determined by the weighing of one's heart.
Ancient Greeks believed that upon death, an individual would enter the realm of Hades, the Greek underworld, and be judged by King Minos, Aeacus, and Radamanthus.