Language:
كتاب الفتن
92  
Afflictions and the End of the World
(16)
Chapter: “Al-Fitnah will appear from the east.”
(16)
باب قَوْلِ النَّبِيِّ صلى الله عليه وسلم ‏"‏ الْفِتْنَةُ مِنْ قِبَلِ الْمَشْرِقِ ‏"‏
Sahih al-Bukhari 7095

Narrated Sa`id bin Jubair:

`Abdullah bin `Umar came to us and we hoped that he would narrate to us a good Hadith. But before we asked him, a man got up and said to him, "O Abu `Abdur-Rahman! Narrate to us about the battles during the time of the afflictions, as Allah says:-- 'And fight them until there is no more afflictions (i.e. no more worshipping of others besides Allah).'" (2.193) Ibn `Umar said (to the man), "Do you know what is meant by afflictions? Let your mother bereave you! Muhammad used to fight against the pagans, for a Muslim was put to trial in his religion (The pagans will either kill him or chain him as a captive). His fighting was not like your fighting which is carried on for the sake of ruling."

حَدَّثَنَا إِسْحَاقُ الْوَاسِطِيُّ، حَدَّثَنَا خَالِدٌ، عَنْ بَيَانٍ، عَنْ وَبَرَةَ بْنِ عَبْدِ الرَّحْمَنِ، عَنْ سَعِيدِ بْنِ جُبَيْرٍ، قَالَ خَرَجَ عَلَيْنَا عَبْدُ اللَّهِ بْنُ عُمَرَ فَرَجَوْنَا أَنْ يُحَدِّثَنَا، حَدِيثًا حَسَنًا ـ قَالَ ـ فَبَادَرَنَا إِلَيْهِ رَجُلٌ فَقَالَ يَا أَبَا عَبْدِ الرَّحْمَنِ حَدِّثْنَا عَنِ الْقِتَالِ فِي الْفِتْنَةِ وَاللَّهُ يَقُولُ ‏{‏وَقَاتِلُوهُمْ حَتَّى لاَ تَكُونَ فِتْنَةٌ‏}‏ فَقَالَ هَلْ تَدْرِي مَا الْفِتْنَةُ ثَكِلَتْكَ أُمُّكَ، إِنَّمَا كَانَ مُحَمَّدٌ صلى الله عليه وسلم يُقَاتِلُ الْمُشْرِكِينَ، وَكَانَ الدُّخُولُ فِي دِينِهِمْ فِتْنَةً، وَلَيْسَ كَقِتَالِكُمْ عَلَى الْمُلْكِ‏.‏
Reference : Sahih al-Bukhari 7095
In-book reference : Book 92, Hadith 46
USC-MSA web (English) reference : Vol. 9, Book 88, Hadith 215
  (deprecated numbering scheme)