The Sufficient (Vol 3) · Hadith 1367 (#Ḥadīth #6)
Chapter 41 | Mistake about Four or Five Rak‘at
6ـ مُحَمَّدُ بْنُ يَحْيَى عَنْ أَحْمَدَ بْنِ مُحَمَّدٍ عَنْ حَمَّادِ بْنِ عِيسَى عَنْ شُعَيْبٍ عَنْ أَبِي بَصِيرٍ عَنْ أَبِي عَبْدِ الله (عَلَيْهِ الْسَّلام) قَالَ إِذَا لَمْ تَدْرِ خَمْساً صَلَّيْتَ أَمْ أَرْبَعاً فَاسْجُدْ سَجْدَتَيِ السَّهْوِ بَعْدَ تَسْلِيمِكَ وَأَنْتَ جَالِسٌ ثُمَّ سَلِّمْ بَعْدَهُمَا.
6. Muhammad ibn Yahya has narrated from Ahmad ibn Muhammad from Hammad ibn ‘Isa from Shu’ayb from abu Basir who has said the following: “Abu ‘Abd Allah , has said, ‘If you do not know whether you have performed five Rak‘at or four, perform two Sajdah (prostration) because of mistake after Salam (the phrase of offering greeting of peace) in a sitting position and thereafter say Salam (the phrase of offering greeting of peace).”’
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).