Imām Bukhārī narrates: Abū Nu'aim and Mūsā ibn Ismā'īl narrated to us, both of them said: Hammām narrated to us, from Qatādah, from Anas ibn Mālik, may Allāh be pleased with him, from the Prophet ﷺ, he said: Whoever forgets a prayer, he should pray it when he remembers it; there is no other atonement for it besides this. (Allāh the Exalted has said:) "And establish prayer for My remembrance." (Ṭāhā: ).
حَدَّثَنَا أَبُو نُعَيْمٍ، وَمُوسَى بْنُ إِسْمَاعِيلَ، قَالاَ حَدَّثَنَا هَمَّامٌ، عَنْ قَتَادَةَ، عَنْ أَنَسٍ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " مَنْ نَسِيَ صَلاَةً فَلْيُصَلِّ إِذَا ذَكَرَهَا، لاَ كَفَّارَةَ لَهَا إِلاَّ ذَلِكَ ". {وَأَقِمِ الصَّلاَةَ لِذِكْرِي} قَالَ مُوسَى قَالَ هَمَّامٌ سَمِعْتُهُ يَقُولُ بَعْدُ {وَأَقِمِ الصَّلاَةَ لِذِكْرِي}.وَقَالَ حَبَّانُ حَدَّثَنَا هَمَّامٌ، حَدَّثَنَا قَتَادَةُ، حَدَّثَنَا أَنَسٌ، عَنِ النَّبِيِّ صلى الله عليه وسلم نَحْوَهُ.
Reference: Sahih Al Bukhari 597