In the Duat, the spirit of the deceased was guided by the god Anubis before the tribunal of Osiris. Anubis magically extracted the Ib (the heart, which represents conscience and morality) and deposited it on one of the two pans of a scale. The Ib was counterbalanced with the feather of Maat (symbol of Truth and Universal Justice), placed on the other pan.
Meanwhile, a jury composed of 42 gods asked him questions about his past conduct, and depending on his answers the heart decreased or increased in weight. Tot, acting as a scribe, wrote down the results and delivered them to Osiris.