Wa ilā aṣḥābihi wat tābi‘īna lahum bi iḥsānin ilā yawmid dīn. "And to his companions and those who follow them in goodness until the Day of Judgment." Recite Al-Fatihah, then:
Allāhumma awsil thawāba mā qara’nāhu ilā sayyidinā Muḥammadin ṣallallāhu ‘alayhi wa sallam. "O Allah, convey the reward of what we have recited to our master Muhammad, peace be upon him." Recite Al-Fatihah again, then say:
It seems you're referring to — most likely a complete tawasul (a supplication that invokes intermediaries, such as prophets or saints, to draw closer to God) as practiced within Nahdlatul Ulama (NU) , the traditional Sunni Islamic organization in Indonesia.
Ushalli tawassula ahlis sunnati wal jama‘ah, raghbatan ilallāhi ta‘ālā bi hurmatin nabiyyi wa ālihi wa ashābihi wa awliyā’ihi wa ‘ulamā’ihi wa masyāyikhinā, linaylil maqāṣidid dīniyyati wad dunyawiyyah. "I perform the tawasul of Ahlus Sunnah wal Jama‘ah, seeking Allah through the sanctity of the Prophet, his family, his companions, his saints, his scholars, and our teachers, to achieve religious and worldly goals." بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ … (recite Al-Fatihah completely)
Then say:
Allāhumma yā dhal manni wal jūdi wal karam, taqabbal tawassulanā wa a‘ṭinā su’lanā bi hurmatil fātiḥah. "O Allah, Owner of favor, bounty, and generosity, accept our tawasul and grant our request by the sanctity of Al-Fatihah." Then recite one more time to seal the tawasul . End of Tawasul NU Lengkap.

