It was narrated that Ahu Dharr said:
The Messenger of Allah (ﷺ) said to me, and struck my thigh: 'What will you do if you stay among people who delay the prayer until its time is over?' He said: 'What do you command me to do?' He said: 'Offer the prayer on time, then go about your business. Then if the Iqamah for that prayer is said and you are in the Masjid, then pray.'