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'."
The lesson we can learn from this hadith is that we must always strive to fulfill our religious obligations, especially those related to prayer, with sincerity and dedication so that we can reap its rewards in this life and the hereafter. We must also make sure not to miss any of our prayers due to forgetfulness or sleepiness, but rather make up for them whenever possible so as not to incur any punishment from Allah SWT for neglecting such an important part of our faith.