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. (Using translation from Abū Dāʾūd 1481)
عَنْ عَمْرِو بْنِ مَالِكٍ الْجَنْبِيِّ حَدَّثَنَا أَنَّهُ سَمِعَ فَضَالَةَ بْنَ عُبَيْدٍ صَاحِبَ رَسُولِ اللهِ ﷺ يَقُولُ سَمِعَ رَسُولُ اللهِ ﷺ رَجُلًا يَدْعُو فِي الصَّلَاةِ وَلَمْ يَذْكُرِ اللهَ ﷻ وَلَمْ يُصَلِّ عَلَى النَّبِيِّ ﷺ فَقَالَ رَسُولُ اللهِ ﷺ عَجِلَ هَذَا ثُمَّ دَعَاهُ فَقَالَ لَهُ وَلِغَيْرِهِ إِذَا صَلَّى أَحَدُكُمْ فَلْيَبْدَأْ بِتَحْمِيدِ رَبِّهِ وَالثَّنَاءِ عَلَيْهِ ثُمَّ لِيُصَلِّ عَلَى النَّبِيِّ ثُمَّ لِيَدْعُ بَعْدُ بِمَا شَاءَ