It is narrated from Nafi‘ that Sayyiduna Abdullah bin Umar, may Allah be pleased with them both, used to say: Whoever forgets a prayer and then remembers it while he is behind the imam in another prayer, then when the imam finishes with salam, he should perform the forgotten prayer and then repeat the prayer which he performed with the imam.
Hadith Referenceموطا امام مالك رواية يحييٰ / كتاب قصر الصلاة في السفر / 408
Hadith Gradingمحدثین:موقوف صحيح
Hadith Takhrij«موقوف صحيح، وأخرجه البيهقي فى«سننه الكبير» برقم: 3244، 3245، 3246، والدارقطني فى «سننه» برقم: 1559، 1560، وعبد الرزاق فى «مصنفه» برقم: 2254، والطحاوي فى «شرح معاني الآثار» برقم: 2683، 2684، 2685، والطبراني فى «الأوسط» برقم: 5132، وابن المنذر فى الاؤسط برقم: 1138، شركة الحروف نمبر: 375، فواد عبدالباقي نمبر: 9 - كِتَابُ قَصْرِ الصَّلَاةِ فِي السَّفَرِ-ح: 77»