The Ancient Egyptian book that contains spells for the afterlife is known as the "Book of the Dead." These collections of spells and rituals were intended to assist the deceased in navigating the afterlife and achieving the afterlife.