I'm reading (again) the beautiful old sourcebook Cloak and Dagger (Forgotten Realms setting) and I've stumbled upon a nice spell, used in the Realms by many cabals of assassins.
I've done for you a 5th edition conversion.
The spell is available in the Wizard Spells List.
1st level necromancy (ritual)
Casting Time: 1 minute
Components: V, S, M
Duration: Until dispelled
You touch a corpse within 1 minute from its death. You sever the tether between the body and the spirit, rendering ineffective spells such as speak with dead or raise dead cast ob the affected corpse. The spell's effect can be dispelled by at least a 6th level spell such as resurrection or true resurrection.
The material component of the spell is a pinch of dust from the body of a wight or a zombie.