Sunan an-Nasa'i
Grading supplied with this record: Sahih (Darussalam)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
أَخْبَرَنَا عَبْدُ الأَعْلَى بْنُ وَاصِلِ بْنِ عَبْدِ الأَعْلَى، قَالَ حَدَّثَنَا يَعْلَى، قَالَ حَدَّثَنَا مُحَمَّدُ بْنُ إِسْحَاقَ، عَنِ الزُّهْرِيِّ، عَنْ سَعِيدٍ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم إِذَا نَسِيتَ الصَّلاَةَ فَصَلِّ إِذَا ذَكَرْتَ فَإِنَّ اللَّهَ تَعَالَى يَقُولُ { أَقِمِ الصَّلاَةَ لِذِكْرِي } " . قَالَ عَبْدُ الأَعْلَى حَدَّثَنَا بِهِ يَعْلَى مُخْتَصَرًا ."
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.
Full reference and source
Sunan an-Nasa'i English : Vol. 1, Book 6, Hadith 619 Arabic : Book 6, Hadith 625
View source on Sunnah.com (opens in a new tab)