Mishkat al-Masabih
Mishkat al-Masabih 1143
Arabic hadith text
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا جِئْتُمْ إِلَى الصَّلَاةِ وَنَحْنُ سُجُودٌ فَاسْجُدُوا وَلَا تَعُدُّوهُ شَيْئًا وَمَنْ أَدْرَكَ رَكْعَةً فقد أدْرك الصَّلَاة» . رَوَاهُ أَبُو دَاوُد
Translation
Abu Hurayrah, may God be pleased with him, reported that the Messenger of God, peace and blessings be upon him, said: When you come to the prayer while we are prostrating, prostrate, but do not count it as anything. Whoever catches one rakah has caught the prayer. Abu Dawud transmitted it.