Bhikkhu Analayo compiled a book called ‘Mindfully Facing Disease and Death’, it is a selection of Sutta’s in which the Buddha or another disciple like Ven. Sariputta gives deathbed teachings. The book is freely offered here:
Mindfully Facing Disease and Death, Compassionate Advice from Early Buddhist Texts , Cambridge: Windhorse, 2016. download