It was narrated that Anas said:
The Messenger of Allah (ﷺ) said: "Whoever forgets a prayer, let him pray it when he remembers it."