Abu Dharr reported,

The Messenger of Allah ﷺ struck my thigh and said, "How will you be when you find yourself among people who delay the prayer past its proper time?"He said, "What do you command me to do?"He replied, "Pray the prayer at its proper time, then go about your business. If the prayer is then called while you are in the mosque, pray with them."

Muslim 1468

Sahih

و حدثني يحيى بن حبيب الحارثي حدثنا خالد بن الحارث حدثنا شعبة عن بديل قال سمعت أبا العالية يحدث عن عبد الله بن الصامت

عن أبي ذر قال

قال رسول الله ﷺ وضرب فخذي كيف أنت إذا بقيت في قوم يؤخرون الصلاة عن وقتها قال قال ما تأمر قال صل الصلاة لوقتها ثم اذهب لحاجتك فإن أقيمت الصلاة وأنت في المسجد فصل

مسلم 1468صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Mosques and places of prayer
Chapter
Disliking delaying prayer beyond its preferred time and what the follower should do if the imam delays it
Numbering
Darussalam 1468
Muslim 1468