Answer:
By having a copy in some form of the prayers from the Book of the Dead, in order to correctly answer questions asked you. Your heart must be measured-weighed against the feather of ma'at. If it is heavier than that, your soul would endure death for the dead, being devoured by the monster Apep.