The Messenger of Allah ﷺ said, "Whoever forgets a prayer should perform it as soon as he remembers it."
حدثنا جبارة بن المغلس حدثنا أبو عوانة عن قتادة
قال رسول الله ﷺ من نسي صلاة فليصلها إذا ذكرها
[Sahih] See the previous hadith.