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 ﷺ.
اللَّهُمَّ يا اللهُ يا حَفِيظُ صَلِّ على عَبْدِكَ و حَبِيبِكَ سَيِّدِنا مُحَمَّدٍ النَّبِيِّ الحَفِيظ و على آلِهِ و صَحْبِهِ و سَلِّمْ تَسْلِيماً و اجْعَلْنِي مُسْتَوْدِعاً لِأَسْرارِ المَعْرِفَةِ و المَحَبَّةِ حَفِيظاً و كُنْ لي مِنْ جَميعِ الأَسْوَاءِ في الدَّارَيْنِ حَافِظاً
Allāhumma yā Allāhu yā Ḥafīẓu ṣalli ‘alā ‘abdika wa ḥabībika sayyidinā Muḥammad an-Nabī al-ḥafīẓ wa ‘alā ālihi wa ṣaḥbihi wa sallim taslīman w’aj’alnī mustawdi’an li asrāri’l-ma’rifati w’al-maḥabbati ḥafīẓan wa kun lī min jamī’I’l-aswā’I f’iddarayni ḥāfiẓā
O Allāh, O Guardian, bestow abundant prayers and peace upon Your slave and beloved, our Master Muḥammad, the guardian Prophet and upon his Family and Companions, and make me a guardian and a repository of the secrets of Your knowledge and love. Protect me from all evil in both abodes.