The ancient Egyptians believed that they will be judged upon their death before going to the Afterlife. This judgment ceremony was the “Weighing of the Heart.” The ceremony took place before Osiris, as he was the main god of the dead and Afterlife, and a tribunal of 43 deities.
First, it was the “Negative Confession,” where the deceased stood before the court and swore that s/he hadn’t committed any offenses. If the deceased was found innocent, he declared “True of Voice” and was allowed to proceed into the Afterlife (Thoth recorded the proceedings).
The symbolic ritual was the “Weighing of the Heart.” Osiris weighed the deceased heart on a scale against the feather of Ma’at (the goddess of truth, order, and justice).
If the heart balanced against the feather of Ma’at, then the person would be granted a place in “Fields of Hetep and Iaru.” If the heart weighed more than the feather (meaning that the deceased was committed more wick than good), then the hearth would be devoured by a beast named Ammit (“The Gobbler”), which was with the head of a crocodile, the front legs and body was of lion, the back legs was of a hippopotamus and had goat arms. When the heart was devoured by Ammit, then the deceased would die the second death and be completely ceased to exist.