Sunan Ibn Majah, Book 2, Hadith 29 (Ibn Majah 695)

It was narrated that Anas bin Malik said:

'The Prophet was asked about a man who forgets prayer or sleeps and misses it. He said: 'he performs it when he remembers it.'"