Coffin Texts
They evolved over time, beginning with the Pyramid Texts in the Old Kingdom through the Coffin Texts of the Middle Kingdom and into several books, most famously the Book of the Dead, in the New Kingdom and later times.