Sahih al-Bukhari 597
Sahih al-Bukhari · Book 9: Times of the Prayers · One who forgets a Salat (prayer) should offer it when he remembers it, and should not repeat anything except that particular prayer
Narrated Anas:
حَدَّثَنَا أَبُو نُعَيْمٍ ، وَمُوسَى بْنُ إِسْمَاعِيلَ ، قَالاَ حَدَّثَنَا هَمَّامٌ ، عَنْ قَتَادَةَ ، عَنْ أَنَسٍ ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " مَنْ نَسِيَ صَلاَةً فَلْيُصَلِّ إِذَا ذَكَرَهَا، لاَ كَفَّارَةَ لَهَا إِلاَّ ذَلِكَ ". {وَأَقِمِ الصَّلاَةَ لِذِكْرِي} قَالَ مُوسَى قَالَ هَمَّامٌ سَمِعْتُهُ يَقُولُ بَعْدُ {وَأَقِمِ الصَّلاَةَ لِذِكْرِي} .وَقَالَ حَبَّانُ حَدَّثَنَا هَمَّامٌ ، حَدَّثَنَا قَتَادَةُ ، حَدَّثَنَا أَنَسٌ ، عَنِ النَّبِيِّ صلى الله عليه وسلم نَحْوَهُ .
The Prophet (ﷺ) said, "If anyone forgets a prayer he should pray that prayer when he remembers it. There is no expiation except to pray the same." Then he recited: "Establish prayer for My (i.e. Allah's) remembrance." (20.14).