Boon of the Undying (5e Epic Boon)
From D&D Wiki
Boon of the Undying
You can perform a ritual that takes 1 hour and consumes components worth 25,000 gp. When you die, you are resurrected the following dawn as though the true resurrection spell had been cast on you. You must perform the ritual again to benefit from this resurrection again.