It was narrated that Ahu Dharr (RA) said: “The Messenger of Allah (peace be upon him) 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.'”
Sunan an-Nasa’i, Book 10, Hadith 83






