Treasury of Daily Prayer offers prayers for the dying, that we might ever be mindful of those whose earthly pilgrimage is coming to an end:
In the hour of death;
On the Day of Judgment: Help them, good Lord.
We poor sinners implore You: to hear us, good Lord.
To comfort all the dying;
To forgive them all their sins;
To lead them out of this misery into eternal life:
We implore You to hear us, good Lord.
[from Prayer for Wednesday, pp. 1307, 1308)