Egyptian Book of the Dead
The burial chambers of the early pyramids had bare walls but by the end of the Fifth Dynasty some were covered with hieroglyphic inscriptions. They are the earliest written spells we have - magic for the dead.
They are not at all easy to understand. There are over 750 individual spells in all. Basically they are short statements or collections of statements probably intended to be read aloud or chanted at the royal funeral ceremonies. In essence, they are designed to urge the soul of the dead pharaoh to go to its eternal resting place.
They express fully developed ideas and it is likely that the spells existed in oral tradition for a least a millennium before they were written down.
The soul of the king was regarded as a conqueror and as such had the right to come into the presence of the gods, and to conqueror them. The spells used by the ancient Egyptian embalmers are collected in the Egyptian Book of the Dead. Here are a few spells. Unlike the practical everyday spells known to the early belief systems of Europe, the whole amount of the Egyptian ones are more or less to do with death and afterlife.
Ancient Egyptian Spells