Hadithcore
Al-Adab Al-Mufrad, 641
da’if· Al-Albani

Abu Hurayra reported that the Prophet, (ﷺ), said, "If anyone says, 'O Allah, bless Muhammad and the family of Muhammad as You blessed Ibrahim and the family of Ibrahim. Shower blessings on Muhammad and the family of Muhammad as You showered blessings on Ibrahim and the family of Ibrahim. Show mercy to Muhammad and the family of Muhammad as You showed mercy to Ibrahim and the family of Ibrahim,' I will testify for him on the Day of Rising and I will intercede for him."

حَدَّثَنَا مُحَمَّدُ بْنُ الْعَلاءِ، قَالَ‏:‏ حَدَّثَنَا إِسْحَاقُ بْنُ سُلَيْمَانَ، عَنْ سَعِيدِ بْنِ عَبْدِ الرَّحْمَنِ، مَوْلَى سَعِيدِ بْنِ الْعَاصِ، قَالَ‏:‏ حَدَّثَنَا حَنْظَلَةُ بْنُ عَلِيٍّ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ‏:‏ مَنْ قَالَ‏:‏ اللَّهُمَّ صَلِّ عَلَى مُحَمَّدٍ، وَعَلَى آلِ مُحَمَّدٍ، كَمَا صَلَّيْتَ عَلَى إِبْرَاهِيمَ وَآلِ إِبْرَاهِيمَ، وَبَارِكْ عَلَى مُحَمَّدٍ، وَعَلَى آلِ مُحَمَّدٍ، كَمَا بَارَكْتَ عَلَى إِبْرَاهِيمَ وَآلِ إِبْرَاهِيمَ، وَتَرَحَّمْ عَلَى مُحَمَّدٍ، وَعَلَى آلِ مُحَمَّدٍ، كَمَا تَرَحَّمْتَ عَلَى إِبْرَاهِيمَ وَآلِ إِبْرَاهِيمَ، شَهِدْتُ لَهُ يَوْمَ الْقِيَامَةِ بِالشَّهَادَةِ، وَشَفَعْتُ لَهُ‏.‏

References2 variants
In-Book Reference
Book 31, Hadith 38
English Reference
Book 31, Hadith 641