Mishkat al-Masabih
Mishkat al-Masabih 1412
Arabic hadith text
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: مَنْ أَدْرَكَ رَكْعَةً مِنَ الصَّلَاةِ مَعَ الإِمَام فقد أدْرك الصَّلَاة كلهَا "
Translation
Abu Huraira reported that the Messenger of God said: Whoever catches one unit of prayer with the imam has caught the whole prayer. Al-Bukhari and Muslim transmitted it.