The Messenger of Allah [SAW] said: "I have been commanded to fight the idolators until they bear witness to La ilaha illallah (there is none worthy of worship except Allah) and that Muhammad is the Messenger of Allah [SAW]. If they bear witness to La ilaha illallah and that Muhammad is the Messenger of Allah [SAW], and they face our Qiblah, eat our slaughtered animals, and pray as we do, then their blood and wealth become forbidden except for a right that is due, and they will have the same rights and obligations as the Muslims." (Using translation from Nasāʾī 3967)
أَنَّهُ سَمِعَ أَنَسَ بْنَ مَالِكٍ ؓ يَقُولُ إِنَّ رَسُولَ اللهِ ﷺ قَالَ أُمِرْتُ أَنْ أُقَاتِلَ الْمُشْرِكِينَ حَتَّى يَشْهَدُوا أَنْ لَا إِلَهَ إِلَّا اللهُ وَأَنَّ مُحَمَّدًا رَسُولُ اللهِ فَإِذَا شَهِدُوا أَنْ لَا إِلَهَ إِلَّا اللهُ وَأَنَّ مُحَمَّدًا رَسُولُ اللهِ وَصَلُّوا صَلَاتَنَا وَاسْتَقْبَلُوا قِبْلَتَنَا وَأَكَلُوا ذَبِيحَتَنَا حُرِّمَتْ عَلَيْنَا أَمْوَالُهُمْ وَدِمَاؤُهُمْ إِلَّا بِحَقِّهَا لَهُ مَا لِلْمُسْلِمِ وَعَلَيْهِ مَا عَلَى الْمُسْلِمِ