The Prophet ﷺ said, "Whoever forgets a prayer should pray it as soon as he remembers it. There is no expiation for it other than that." Then he recited, "And establish prayer for My remembrance" [Taha 20:14].Musa said that Hammam said, "I heard him say afterwards, 'And establish prayer for the remembrance.'"Abu Abdullah said that Habban reported, Hammam narrated to us, Qatada narrated to us, Anas narrated to us from the Prophet ﷺ something similar.
حدثنا أبو نعيم وموسى بن إسماعيل قالا حدثنا همام عن قتادة
عن النبي ﷺ قال من نسي صلاة فليصل إذا ذكرها لا كفارة لها إلا ذلك {وأقم الصلاة لذكري} قال موسى قال همام سمعته يقول بعد وأقم الصلاة للذكرى قال أبو عبد الله وقال حبان حدثنا همام حدثنا قتادة حدثنا أنس عن النبي ﷺ نحوه