deathbed conversion
The adoption of a particular religion when one's death is near. A: "I didn't know Rita was Catholic." B: "She wasn't, not until her deathbed conversion." I see a lot of deathbed conversions when I work in the hospital—people seem to need religion especially as they near the end of their lives.