It was narrated that Abu Hurairah said:
The Messenger of Allah (ﷺ) said: If you forget a prayer, pray it when you remember it, for Allah says: "and perform the Salah for My remembrance." [1][1] Ta-Ha 20:14.
English reference: Vol. 1, Book 6, Hadith 619
Arabic reference: Book 6, Hadith 625
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.