This prayer is taken from Sayyidi Habib Umar bin Hafiz’s collection of prayers using Allah’s beautiful names in which he calls upon Allah by His beautiful names and then asks Him to bestow prayers upon His Beloved by those names. Finally, he asks Allah for a portion of those attributes which belong to Allah and which He has bestowed upon His Messenger ﷺ.
اللَّهُمَّ يا اللهُ يا آخِر صَلِّ على عَبْدِكَ و حَبِيبِكَ سَيِّدِنا مُحَمَّدٍ النَّبِيِّ المَبْعُوثِ إلى آخِرِ الأُمَمِ و خَيْرِها و على آلِهِ و صَحْبِهِ و سَلِّمْ تَسْلِيماً واجْعَلْنا بِهِ مِنْ خَواصِّ أَنْصَارِهِ و وُرَّاثِهِ في آخِرِ الزَّمَنِ و مِنْ أَقْرَبِ النَّاسِ إِلَيْهِ و أَسْعَدِهِمْ بِهِ في اليَوْمِ الآخِرِ جُوداً و كَرَماً
O Allah, the Last, bestow abundant prayers and peace upon Your slave and beloved, our Master Muhammad, the Prophet who was sent to the last and best nation, and upon his Family and Companions, and by him make us among the elite of those who support him and inherit from him in the last days. Make us among the closest of people to him and those that receive the most from him on the Last Day, out of Your generosity and kindness.