Ziyad ibn Ilaqah said: Al-Mughirah ibn Shu'bah led us in prayer and he stood up at the end of two rak'ahs. We said: Glory be to Allah; he also said: Glory be to Allah, and he proceeded. When he finished the prayer and gave the salutation, he made two prostrations of forgetfulness. When he turned (to us) he said: I saw the Messenger of Allah ﷺ doing so as I did. Abu Dawud said: Ibn Abi Laila narrated this tradition in a similar manner from al-Shaibi from al-Mughirah b. Shu'bah. Abu 'Umais narrated it from Thabit b. 'Ubaid saying: "Al-Mughirah b. Shu'bah led us in prayer, like the tradition reported by Ziyad b. 'Illaqah. Abu Dawud said: Abu 'Umais is the brother of al-Mas'udi. And Sa'd b. Abi Waqqas did the same as done by al-Mughirah, 'Imran b. Husain, Dahhak b. Qais and Mu'awiyah b. Abi Sufyan. Ibn 'Abbas and 'Umar b. 'Abd al-'Aziz issued legel verdict to the same effect. Abu Dawud said: This applies to a person who stands up at the end of two rak'ahs and males prostration after giving the salutation.
سُبْحَانَ اللَّهِ وَمَضَى فَلَمَّا أَتَمَّ صَلاَتَهُ وَسَلَّمَ سَجَدَ سَجْدَتَىِ السَّهْوِ فَلَمَّا انْصَرَفَ قَالَ رَأَيْتُ رَسُولَ اللَّهِ ﷺ يَصْنَعُ كَمَا صَنَعْتُ