(158) باب فِي الرَّجُلِ يُدْرِكُ الإِمَامَ سَاجِدًا كَيْفَ يَصْنَعُ
Abu Hurairah reported the Messenger of Allah (ﷺ) as saying; when you come to pray while we are prostrating ourselves, you must prostrate yourselves, and do not reckon it anything (rak'ah) he has been present at the prayer.
Reference: Sunan Abi Dawud 893
In-book reference: Book 2, Hadith 503
English translation: Book 2, Hadith 892
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.