It was narrated from Salim that the Messenger of Allah (ﷺ) said:
"Whoever catches up with a Rak'ah of one of the prayers has caught up with it, except that he has to make up the portion that he missed."
English reference: Vol. 1, Book 6, Hadith 559
Arabic reference: Book 6, Hadith 563
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.