Habib Kazim al-Saqqaf (may Allah protect him and benefit us by him) recommends reciting the following prayer upon the Prophet ﷺ . It should be recited at least twice in the morning or evening, or ideally ten times. If someone recites it consistently, the Messenger of Allah ﷺ will be with them at the time of death and the pains of the throes of death will be reduced.
اللَّهُمَّ صَلِّ على سَيِّدِنا مُحَمَّدٍ النَّبِيِّ الأُمِّي الحَبيب ،العَالي القَدْر، العَظِيم الجَاه ،و على آلِهِ و صَحْبِهِ و سَلِّمْ
Allahumma salli wa sallim ‘ala sayyidina Muhammad annabi’l-ummi’l-habib al-‘aali’l-qadr, al-azim’l-jah wa ‘ala alihi wa sahbihi wa sallim
O Allah, bestow prayers and peace upon our Master Muhammad, the Unlettered Prophet, the Beloved, the Possessor of the Highest Station and the Greatest Rank and upon his Family and Companions.