All of a person's sins are engraved on their bones. According to the Chronicles of Jerahmeel, a 12th-century Hebrew chronicle compiled by Jerahmeel ben Solomon, Rabbi undefined ben Parnach taught that iniquities are literally inscribed on the skeleton, while merits are written on the right hand.
At the moment of death, three angels arrive. The Angel of Death. A scribe. And a third angel assigned to accompany them. They say, "Arise, your end has come." The dying person protests: "My end has not yet arrived." The scribe begins counting the person's days and years. Then the person opens their eyes and sees the Angel of Death for the first time.
The description is terrifying. The angel stretches from one end of the world to the other. From the soles of his feet to the crown of his head, he is covered entirely in eyes. His clothing is fire. His covering is fire. He is surrounded by fire. He is fire. In his hand he carries a blade of flame, and from that blade hangs a single bitter drop. That drop causes death, then decomposition, then the livid pallor of the corpse.
But here is the paradox: no one dies until they have seen God. "No man shall see Me and live" (Exodus 33:20) means that in the act of dying, God becomes visible. The person then confesses everything they have done. Their own mouth bears witness. God writes it down.
If the person lived righteously, their soul is returned peacefully to its owner. Three companies of angels greet them. The first says, "A righteous one has perished from the earth." The second says, "Let them rest in peace upon their couches." The third says, "They walked the straight path." But if the person was wicked, five angels of destruction arrive and declare: "The wicked shall return to Sheol."