صحيح البخاري Sahih Bukhari كتاب الجهاد والسير The Book of Jihad (Fighting For Allah’S Cause)
بَابُ يُقَاتَلُ مِنْ وَرَاءِ الإِمَامِ وَيُتَّقَى بِهِ:

(109) Chapter. The Imam (i.e., Muslim ruler) should be defended (by the Muslims and he is to be taken as their protector).

2 hadith
Hadith 2956
حَدَّثَنَا أَبُو الْيَمَانِ ، أَخْبَرَنَا شُعَيْبٌ ، حَدَّثَنَا أَبُو الزِّنَادِ أَنَّ الْأَعْرَجَ حَدَّثَهُ أَنَّهُ سَمِعَ أَبَا هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ ، أَنَّهُ سَمِعَ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، يَقُولُ : " نَحْنُ الْآخِرُونَ السَّابِقُونَ " .
Narrated Abu Huraira: That heard Allah's Apostle saying, "We are the last but will be the foremost to enter Paradise)."
Hadith Reference Sahih Bukhari / The Book of Jihad (Fighting For Allah’S Cause) / Hadith: 2956
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 2957
وَبِهَذَا الْإِسْنَادِ " مَنْ أَطَاعَنِي فَقَدْ أَطَاعَ اللَّهَ ، وَمَنْ عَصَانِي فَقَدْ عَصَى اللَّهَ ، وَمَنْ يُطِعِ الْأَمِيرَ فَقَدْ أَطَاعَنِي ، وَمَنْ يَعْصِ الْأَمِيرَ فَقَدْ عَصَانِي وَإِنَّمَا الْإِمَامُ جُنَّةٌ يُقَاتَلُ مِنْ وَرَائِهِ وَيُتَّقَى بِهِ ، فَإِنْ أَمَرَ بِتَقْوَى اللَّهِ وَعَدَلَ ، فَإِنَّ لَهُ بِذَلِكَ أَجْرًا ، وَإِنْ قَالَ بِغَيْرِهِ ، فَإِنَّ عَلَيْهِ مِنْهُ " .
The Prophet added, "He who obeys me, obeys Allah, and he who disobeys me, disobeys Allah. He who obeys the chief, obeys me, and he who disobeys the chief, disobeys me. The Imam is like a shelter for whose safety the Muslims should fight and where they should seek protection. If the Imam orders people with righteousness and rules justly, then he will be rewarded for that, and if he does the opposite, he will be responsible for that."
Hadith Reference Sahih Bukhari / The Book of Jihad (Fighting For Allah’S Cause) / Hadith: 2957
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة