"Follow what has been revealed to you from your Lord" (Quran 6:106) — meaning: invite them to the affirmation that there is no god but Allah — "and turn away from the polytheists." This is abrogated; the command to fight them has abrogated it.
﴿اتَّبِعْ مَا أُوحِيَ إِلَيْكَ مِنْ رَبك﴾ (يَقُولُ: ادْعُهُمْ إِلَى) لَا إِلَهَ إِلَّا اللَّهُ ﴿وَأَعْرِضْ عَنِ الْمُشْرِكِينَ﴾ وَهِي مَنْسُوخَة، نسختها الْقِتَال