"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.'"
لِي رَسُولُ اللَّهِ ﷺ وَضَرَبَ فَخِذِي كَيْفَ أَنْتَ إِذَا بَقِيتَ فِي قَوْمٍ يُؤَخِّرُونَ الصَّلاَةَ عَنْ وَقْتِهَا قَالَ مَا تَأْمُرُ قَالَ صَلِّ الصَّلاَةَ لِوَقْتِهَا ثُمَّ اذْهَبْ لِحَاجَتِكَ فَإِنْ أُقِيمَتِ الصَّلاَةُ وَأَنْتَ فِي الْمَسْجِدِ فَصَلِّ