What is the ruling on what to do on late arrival for Salah? I don't understand the related hadith barakallahu feek

Ustadh AbdulAziz al-Haqqan
Just join the Imam if it is before he says sami'a Allahu liman hamidah then this rak'ah counts for you, if it is after then you have missed this rak'ah.