The Messenger of Allah ﷺ heard a person supplicating during prayer. He did not mention the greatness of Allah, nor did he invoke blessings on the Prophet ﷺ. The Messenger of Allah ﷺ said: He made haste. He then called him and said either to him or to any other person: If any of you prays, he should mention the exaltation of his Lord in the beginning and praise Him; he should then invoke blessings on the Prophet ﷺ; thereafter he should supplicate Allah for anything he wishes.
أَنَّهُ سَمِعَ فَضَالَةَ بْنَ عُبَيْدٍ صَاحِبَ رَسُولِ اللَّهِ ﷺ يَقُولُ سَمِعَ رَسُولُ اللَّهِ ﷺ رَجُلاً يَدْعُو فِي صَلاَتِهِ لَمْ يُمَجِّدِ اللَّهَ تَعَالَى وَلَمْ يُصَلِّ عَلَى النَّبِيِّ ﷺ فَقَالَ رَسُولُ اللَّهِ ﷺ عَجِلَ هَذَا ثُمَّ دَعَاهُ فَقَالَ لَهُ أَوْ لِغَيْرِهِ إِذَا صَلَّى أَحَدُكُمْ فَلْيَبْدَأْ بِتَحْمِيدِ رَبِّهِ جَلَّ وَعَزَّ وَالثَّنَاءِ عَلَيْهِ ثُمَّ يُصَلِّي عَلَى النَّبِيِّ ﷺ ثُمَّ يَدْعُو بَعْدُ بِمَا شَاءَ