Abu Hurairah reported; The Prophet ﷺ offered the noon prayer and he gave the salutation at the end of two rakahs. He was asked. Has the prayer been shortened ? then he offered two rakahs of the prayer and made two prostrations (at the end of it).
أَنَّ النَّبِيَّ ﷺ صَلَّى الظُّهْرَ فَسَلَّمَ فِي الرَّكْعَتَيْنِ فَقِيلَ لَهُ نَقَصَتِ الصَّلاَةُ فَصَلَّى رَكْعَتَيْنِ ثُمَّ سَجَدَ سَجْدَتَيْنِ