Musnad Ahmad 67
It was narrated from Abu Hurairah that the Prophet (ﷺ) said:
“I have been commanded to fight the people until they say La ilaha illallah, and if they say it then their blood and wealth are safe from me, except in cases dictated by sharee'ah, and their reckoning is with Allah.” When some people apostatized, ʼUmar said to Abu Bakr: Will you fight them when you heard the Messenger of Allah is say such and such? Abu Bakr said: By Allah, I will not separate prayer and zakah, and I shall certainly fight anyone who separates them. So we fought them alongside him and we realised that that was the right thing to do.
حَدَّثَنَا مُحَمَّدُ بْنُ يَزِيدَ، قَالَ أَخْبَرَنَا سُفْيَانُ بْنُ حُسَيْنٍ، عَنِ الزُّهْرِيِّ، عَنْ عُبَيْدِ اللَّهِ بْنِ عَبْدِ اللَّهِ بْنِ عُتْبَةَ بْنِ مَسْعُودٍ، عَنْ أَبِي هُرَيْرَةَ، رَضِيَ اللَّهُ عَنْهُ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ أُمِرْتُ أَنْ أُقَاتِلَ النَّاسَ حَتَّى يَقُولُوا لَا إِلَهَ إِلَّا اللَّهُ فَإِذَا قَالُوهَا عَصَمُوا مِنِّي دِمَاءَهُمْ وَأَمْوَالَهُمْ إِلَّا بِحَقِّهَا وَحِسَابُهُمْ عَلَى اللَّهِ تَعَالَى قَالَ فَلَمَّا كَانَتْ الرِّدَّةُ قَالَ عُمَرُ لِأَبِي بَكْرٍ رَضِيَ اللَّهُ عَنْهُ تُقَاتِلُهُمْ وَقَدْ سَمِعْتَ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ كَذَا وَكَذَا قَالَ فَقَالَ أَبُو بَكْرٍ رَضِيَ اللَّهُ عَنْهُ وَاللَّهِ لَا أُفَرِّقُ بَيْنَ الصَّلَاةِ وَالزَّكَاةِ وَلَأُقَاتِلَنَّ مَنْ فَرَّقَ بَيْنَهُمَا قَالَ فَقَاتَلْنَا مَعَهُ فَرَأَيْنَا ذَلِكَ رَشَدًا‏.‏