Death Ward(Player's Handbook v.3.5, p. 217)
Level: Runescarred Berserker 3, Cleric 4, Paladin 4, Healer 4, Hunter of the Dead 4, Slayer of Domiel 4, Knight of the Weave 4, Blighter 4, Death Delver 4, Death Master 4, Dread Necromancer 4, Druid 5, Urban Druid 5, Death 4, Undeath 4,
Components: V, S, DF,
Casting Time: 1 standard action
Target: Living creature touched
Duration: 1 min./level
Saving Throw: Will negates (harmless)
Spell Resistance: Yes (harmless)
The subject is immune to all death spells, magical death effects, energy drain, and any negative energy effects (such as from inflict spells or chill touch).
This spell doesn't remove negative levels that the subject has already gained, nor does it affect the saving throw necessary 24 hours after gaining a negative level.
Death ward does not protect against other sorts of attacks, such as hit point loss, poison, or petrification, even if those attacks might be lethal.
(note: Heroes of Horror lists this spell as both a 3rd and 4th level spell for the Dread Necromancer).