An-Nahl • EN-AL-JALALAYN
﴿ فَإِن تَوَلَّوْا۟ فَإِنَّمَا عَلَيْكَ ٱلْبَلَٰغُ ٱلْمُبِينُ ﴾
“BUT IF they turn away [from thee, O Prophet, remember that] thy only duty is a clear delivery of the message [entrusted to thee].”
But if they turn away if they reject Islam your duty O Muhammad (s) is only to convey the Message plainly — this was revealed before the command to fight the disbelievers.