Source: THE ECSTACY OF LOVE DIVINE (Essence of Narada Bhakti Sutra) by Swami Shantananda Puri Maharaj
Prayers as also taking the name of the Lord can draw the Grace of the Lord to such an extent that even an impending death will be afraid to come near such a devotee.
When Rama expresses his concern to Hanuman that from the account the latter gave of his trip to Lanka and the pitiable state in which Sita was, by the time he gathers an army and reaches Lanka, Sita might perhaps die of the pangs of separation, Hanuman dismisses the possibility as follows:-
नाम पाहरू दिवस निसि ध्यान तुम्हार कपाट !
लोचन निज पद जंत्रित जाहिं प्रान केहिं बाट !!
(Ramcharit Manas Sundarkand 30)
"As Sita is chanting Ramnam constantly, Lord's name is the watchman and her meditation on the Lord is the doorway. Her eyes are always chained to Ram's feet which her mind is thinking of. As thus all the exit doors are guarded by Ramnam there is no way for her life to get out at all."
Please check these: Excerpts from a discourse by our Sri Sri Muralidhara Swamiji