[Machine] About the Prophet ﷺ said, "If one of you comes while the imam is delivering the sermon or has already left, then let them pray two units (rak'ahs)."
عَنِ النَّبِيِّ ﷺ قَالَ «إِذَا جَاءَ أَحَدُكُمْ وَالْإِمَامُ يَخْطُبُ أَوْ قَدْ خَرَجَ فَلْيُصَلِّ رَكْعَتَيْنِ»