Contingency
The spell contingency covers this precisely, as long as you provide an accurate trigger.
It says:
"Choose a spell of 5th level or lower that you can cast, has a casting
time of 1 action, and can target you."
"...and it affects only you, even if it can normally target others."
Revivify states:
Casting Time: 1 action
Range: Touch
"Touch a creature that's died in the last minute."
Now you can probably set your contingency to trigger to be "Upon my death". This version of revivify will be able to revive yourself, but can't revive others.
There may be some dispute as to whether someone is "touching" themselves when they die, but that may be grounds for a separate question.
Side note: Contingency is a level 6 Wizard spell, Revivify is a level 3 Cleric/Paladin spell. As such, the only official ways to get this combination of spells without multiclassing inefficiently is by being a level 14+ Bard or by being a level 17+ Arcana Cleric (Sword Coast book).