Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:3848Abū ʿAbdullāh al-Ḥāfiẓ > Abū Bakr b. Isḥāq > Mūsá b. Isḥāq al-Anṣārī > Abū al-Rabīʿ al-Zahrānī > Ḥammād b. Zayd > Yaḥyá > ʿAbd al-Raḥman al-Aʿraj > ʿAbdullāh b. Mālik Ibn Buḥaynah > Rasūl

[Machine] The Messenger of Allah ﷺ stood in the shaf' (middle) position, which he intended to sit in his prayer. He continued with his prayer, and when he reached the end of the prayer, he prostrated before giving the salutation (salam).  

البيهقي:٣٨٤٨أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو بَكْرِ بْنُ إِسْحَاقَ أنبأ مُوسَى بْنُ إِسْحَاقَ الْأَنْصَارِيُّ ثنا أَبُو الرَّبِيعِ الزَّهْرَانِيُّ ثنا حَمَّادُ بْنُ زَيْدٍ عَنْ يَحْيَى عَنْ عَبْدِ الرَّحْمَنِ الْأَعْرَجِ عَنْ عَبْدِ اللهِ بْنِ مَالِكٍ ابْنِ بُحَيْنَةَ

أَنَّ رَسُولَ اللهِ ﷺ قَامَ فِي الشَّفْعِ الَّذِي يُرِيدُ أَنْ يَجْلِسَ فِي صَلَاتِهِ فَمَضَى فِي صَلَاتِهِ فَلَمَّا كَانَ فِي آخِرِ الصَّلَاةِ سَجَدَ قَبْلَ أَنْ يُسَلِّمَ ثُمَّ سَلَّمَ  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ أَبِي الرَّبِيعِ الزَّهْرَانِيِّ وَقَدْ رُوِّينَا مِنْ حَدِيثِ مُعَاوِيَةَ بْنِ أَبِي سُفْيَانَ ؓ بِمَعْنَاهُ

See similar narrations below:

Collected by Muslim
muslim:570cAbū al-Rabīʿ al-Zahrānī > Ḥammād > Yaḥyá b. Saʿīd > ʿAbd al-Raḥman al-Aʿraj > ʿAbdullāh b. Mālik Ibn Buḥaynah al-Azdī

The Messenger of Allah ﷺ stood up (at the end of two rak'ahs) when he had to sit and proceeded on with the prayer. But when he was at the end of the prayer, he performed a prostration before the salutation and then pronounced the salutation.  

مسلم:٥٧٠cوَحَدَّثَنَا أَبُو الرَّبِيعِ الزَّهْرَانِيُّ حَدَّثَنَا حَمَّادٌ حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ عَنْ عَبْدِ الرَّحْمَنِ الأَعْرَجِ عَنْ عَبْدِ اللَّهِ بْنِ مَالِكٍ ابْنِ بُحَيْنَةَ الأَزْدِيِّ

أَنَّ رَسُولَ اللَّهِ ﷺ قَامَ فِي الشَّفْعِ الَّذِي يُرِيدُ أَنْ يَجْلِسَ فِي صَلاَتِهِ فَمَضَى فِي صَلاَتِهِ فَلَمَّا كَانَ فِي آخِرِ الصَّلاَةِ سَجَدَ قَبْلَ أَنْ يُسَلِّمَ ثُمَّ سَلَّمَ