It was narrated from 'Abdullah that:The Prophet (ﷺ) said the salam, then he spoke, then he performed two prostrations of forgetfulness.
أَخْبَرَنَا مُحَمَّدُ بْنُ آدَمَ، عَنْ حَفْصٍ، عَنِ الأَعْمَشِ، عَنْ إِبْرَاهِيمَ، عَنْ عَلْقَمَةَ، عَنْ عَبْدِ اللَّهِ، أَنَّ النَّبِيَّ صلى الله عليه وسلم سَلَّمَ ثُمَّ تَكَلَّمَ ثُمَّ سَجَدَ سَجْدَتَىِ السَّهْوِ .
Nesai
The Book of Forgetfulness (In Prayer) • Hadith 1329