Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:648a[Chain 1] Khalaf b. Hishām > Ḥammād b. Zayd [Chain 2] Abū al-Rabīʿ al-Zahrānī And ʾAbū Kāmil al-Jaḥdarī > Ḥammād > Abū ʿImrān al-Jawnī > ʿAbdullāh b. al-Ṣāmit > Abū Dhar

The Messenger of Allah ﷺ said to me: How would you act when you are under the rulers who would delay the prayer beyond its prescribed time, or they would make prayer a dead thing as far as its proper time is concerned? I said: What do you command? He (the Holy Prophet) said: Observe the prayer at Its proper time, and if you can say it along with them do so, for it would be a superetogatory prayer for you. Khalaf (one of the narrators in the above hadith) has not mentioned" beyond their (prescribed) time".  

مسلم:٦٤٨aحَدَّثَنَا خَلَفُ بْنُ هِشَامٍ حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ ح قَالَ

وَحَدَّثَنِي أَبُو الرَّبِيعِ الزَّهْرَانِيُّ وَأَبُو كَامِلٍ الْجَحْدَرِيُّ قَالاَ حَدَّثَنَا حَمَّادٌ عَنْ أَبِي عِمْرَانَ الْجَوْنِيِّ عَنْ عَبْدِ اللَّهِ بْنِ الصَّامِتِ عَنْ أَبِي ذَرٍّ قَالَ قَالَ لِي رَسُولُ اللَّهِ كَيْفَ أَنْتَ إِذَا كَانَتْ عَلَيْكَ أُمَرَاءُ يُؤَخِّرُونَ الصَّلاَةَ عَنْ وَقْتِهَا أَوْ يُمِيتُونَ الصَّلاَةَ عَنْ وَقْتِهَا قَالَ قُلْتُ فَمَا تَأْمُرُنِي قَالَ صَلِّ الصَّلاَةَ لِوَقْتِهَا فَإِنْ أَدْرَكْتَهَا مَعَهُمْ فَصَلِّ فَإِنَّهَا لَكَ نَافِلَةٌ وَلَمْ يَذْكُرْ خَلَفٌ عَنْ وَقْتِهَا  


See similar narrations below:

Collected by Abū Dāwūd, Bayhaqī
abudawud:431Musaddad > Ḥammād b. Zayd > Abū ʿImrān / al-Jawnī > ʿAbdullāh b. al-Ṣāmit > Abū Dhar

"The Messenger of Allah ﷺ asked me: 'How will you act, Abu Dharr, when you are under rulers who kill prayer or delay it (beyond its proper time) ?' I said: 'Messenger of Allah, what do you command me ?' He replied: 'Offer the prayer at its proper time, and if you say it along with them, say it, for it will be a supererogatory prayer for you.'"  

أبو داود:٤٣١حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ عَنْ أَبِي عِمْرَانَ يَعْنِي الْجَوْنِيَّ عَنْ عَبْدِ اللَّهِ بْنِ الصَّامِتِ عَنْ أَبِي ذَرٍّ قَالَ قَالَ

لِي رَسُولُ اللَّهِ ﷺ يَا أَبَا ذَرٍّ كَيْفَ أَنْتَ إِذَا كَانَتْ عَلَيْكَ أُمَرَاءُ يُمِيتُونَ الصَّلاَةَ أَوْ قَالَ يُؤَخِّرُونَ الصَّلاَةَ قُلْتُ يَا رَسُولَ اللَّهِ فَمَا تَأْمُرُنِي قَالَ صَلِّ الصَّلاَةَ لِوَقْتِهَا فَإِنْ أَدْرَكْتَهَا مَعَهُمْ فَصَلِّهَا فَإِنَّهَا لَكَ نَافِلَةٌ  

bayhaqi:5315Abū al-Ḥasan ʿAlī b. Muḥammad al-Muqriʾ > al-Ḥasan b. Muḥammad b. Isḥāq > Yūsuf b. Yaʿqūb al-Qāḍī > Abū al-Rabīʿ > Ḥammād b. Zayd > Abū ʿImrān al-Jawnī > ʿAbdullāh b. al-Ṣāmit > Abū Dhar

"The Messenger of Allah ﷺ asked me: 'How will you act, Abu Dharr, when you are under rulers who kill prayer or delay it (beyond its proper time) ?' I said: 'Messenger of Allah, what do you command me ?' He replied: 'Offer the prayer at its proper time, and if you say it along with them, say it, for it will be a supererogatory prayer for you.'" (Using translation from Abū Dāʾūd 431)   

البيهقي:٥٣١٥أَخْبَرَنَا أَبُو الْحَسَنِ عَلِيُّ بْنُ مُحَمَّدٍ الْمُقْرِئُ أنبأ الْحَسَنُ بْنُ مُحَمَّدِ بْنِ إِسْحَاقَ ثنا يُوسُفُ بْنُ يَعْقُوبَ الْقَاضِي ثنا أَبُو الرَّبِيعِ ثنا حَمَّادُ بْنُ زَيْدٍ عَنْ أَبِي عِمْرَانَ الْجَوْنِيِّ عَنْ عَبْدِ اللهِ بْنِ الصَّامِتِ عَنْ أَبِي ذَرٍّ ؓ قَالَ

قَالَ لِي رَسُولُ اللهِ ﷺ كَيْفَ أَنْتَ إِذَا كَانَ عَلَيْكَ أُمَرَاءُ يُؤَخِّرُونَ الصَّلَاةَ عَنْ وَقْتِهَا؟ أَوْ قَالَ يُمِيتُونَ الصَّلَاةَ عَنْ وَقْتِهَا قَالَ قُلْتُ فَمَا تَأْمُرُنِي؟ قَالَ صَلِّ الصَّلَاةَ لِوَقْتِهَا فَإِنْ أَدْرَكْتَهَا مَعَهُمْ فَصَلِّ؛ فَإِنَّهَا لَكَ نَافِلَةٌ  

رَوَاهُ مُسْلِمٌ فِي الصَّحِيحِ عَنْ أَبِي الرَّبِيعِ