كتاب الْمَسَاجِدِ وَمَوَاضِعِ الصَّلاَةِ
5  
The Book of Mosques and Places of Prayer
(41)
Chapter: It is disliked to delay the prayers beyond their proper times, and what a person should do if the Imam delays the prayer
(41)
باب كَرَاهِيَةِ تَأْخِيرِ الصَّلاَةِ عَنْ وَقْتِهَا الْمُخْتَارِ وَمَا يَفْعَلُهُ الْمَأْمُومُ إِذَا أَخَّرَهَا الإِمَامُ
Sahih Muslim 648 d

Abu Dharr reported:

The Messenger of Allah (ﷺ) struck my thigh and said: How would you act if you survive among the people who would delay prayers beyond their (prescribed) time? He (Abu Dharr) said: What do you command (under this situation)? He (the Holy Prophet) slid: Observe prayer at its prescribed time, then go (to meet) your needs, and if the Iqama is pronounced, and you are present in the mosque, then observe prayer (along with the Jama'at).
وَحَدَّثَنِي يَحْيَى بْنُ حَبِيبٍ الْحَارِثِيُّ، حَدَّثَنَا خَالِدُ بْنُ الْحَارِثِ، حَدَّثَنَا شُعْبَةُ، عَنْ بُدَيْلٍ، قَالَ سَمِعْتُ أَبَا الْعَالِيَةِ، يُحَدِّثُ عَنْ عَبْدِ اللَّهِ بْنِ الصَّامِتِ، عَنْ أَبِي ذَرٍّ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم وَضَرَبَ فَخِذِي ‏"‏ كَيْفَ أَنْتَ إِذَا بَقِيتَ فِي قَوْمٍ يُؤَخِّرُونَ الصَّلاَةَ عَنْ وَقْتِهَا ‏"‏ ‏.‏ قَالَ قَالَ مَا تَأْمُرُ قَالَ ‏"‏ صَلِّ الصَّلاَةَ لِوَقْتِهَا ثُمَّ اذْهَبْ لِحَاجَتِكَ فَإِنْ أُقِيمَتِ الصَّلاَةُ وَأَنْتَ فِي الْمَسْجِدِ فَصَلِّ ‏"‏ ‏.‏
Reference : Sahih Muslim 648d
In-book reference : Book 5, Hadith 301
USC-MSA web (English) reference : Book 4, Hadith 1356
  (deprecated numbering scheme)