حَدَّثَنَا مُحَمَّدُ بْنُ إِسْمَاعِيلَ بْنِ أَبِي سَمِينَةَ ، حَدَّثَنَا رَوْحٌ ، حَدَّثَنَا ابْنُ جُرَيْجٍ ، عَنْ عَبْدِ اللهِ بْنِ مُسَافِعٍ ، عَنْ مُصْعَبِ بْنِ شَيْبَةَ ، عَنْ عُقْبَةَ بْنِ مُحَمَّدِ بْنِ الْحَارِثِ ، عَنْ عَبْدِ اللهِ بْنِ جَعْفَرٍ قَالَ : قَالَ رَسُولُ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - : إِذَا شَكَّ أَحَدُكُمْ فِي صَلَاتِهِ فَلَمْ يَدْرِ كَمْ صَلَّى ، فَلْيَسْجُدْ سَجْدَتَيْنِ إِذَا فَرَغَ مِنْ صَلَاتِهِ .
It is narrated from Sayyiduna Abdullah bin Ja'far (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When one of you has a doubt in his prayer and does not know how many (rak'ahs) he has prayed, let him perform two prostrations (of forgetfulness) after he has finished his prayer."