This wouldn't work on its own. Raise dead gives you days of time to prepare and cast the spell.
Then again, if players are 9th level they likely have access to teleport which means getting to another cleric shouldn't be an issue. Which actually plays really well with this suggestion: