عَنْ أَنَسٍ: أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ يُصَلِّي الْجُمُعَةَ حِينَ تَمِيلُ الشَّمْسُ. رَوَاهُ البُخَارِيّ
Translation

Abu Huraira reported God’s Messenger as saying, “If anyone is in time for a rak‘a in the prayer along with the imam he has said the whole prayer.” (Bukhari and Muslim.)