Islamic Ruling on Running to Catch Congregational Prayer
It is disliked to run for congregational prayer, but for Friday prayer, running becomes necessary if you can still join before the imam finishes.

According to this Islamic ruling, a hadith reported by حضرت ابو ہریرہ رضی اللہ عنہ says that the Prophet صلی اللہ علیہ وسلم instructed المسلمين not to run when the prayer جماعت has started, but to walk calmly and with dignity.
Based on this, Islamic scholars explain in this fatwa that running to join congregational prayer is makrooh (disliked). A person should come walking with peace and calmness.
However, the ruling changes for Friday prayer. The Quran says to hurry towards the remembrance of Allah when the call for Friday prayer is made. Therefore, if a person fears missing the Friday congregation but believes they can still join the imam before he finishes the prayer, then running becomes necessary (wajib) according to Islamic scholars.
This shows that the Islamic ruling depends on the situation. Normally running is disliked, but in the case of Friday prayer, it may become required.