4:89 (ugh, difficult to quote in context)
"They desire that you should disbelieve as they have disbelieved, so that you might be (all) alike; therefore take not from among them friends until they fly (their homes) in Allah's way; but if they turn back, then seize them and kill them wherever you find them, and take not from among them a friend or a helper."
90
Except those who reach a people between whom and you there is an alliance, or who come to you, their hearts shrinking from fighting you or fighting their own people; and if Allah had pleased, He would have given them power over you, so that they should have certainly fought you; therefore if they withdraw from you and do not fight you and offer you peace, then Allah has not given you a way against them.
89 is commonly believed to be regarding apostates. It's tough to unpack, because this Quran is believed to be during a time when there was an actual Kingdom, so the apostate would also be a traitor. That said, I think it's the apostasy that makes them the traitor, technically.
"They desire that you should disbelieve as they have disbelieved, so that you might be (all) alike; therefore take not from among them friends until they fly (their homes) in Allah's way; but if they turn back, then seize them and kill them wherever you find them, and take not from among them a friend or a helper."
90
Except those who reach a people between whom and you there is an alliance, or who come to you, their hearts shrinking from fighting you or fighting their own people; and if Allah had pleased, He would have given them power over you, so that they should have certainly fought you; therefore if they withdraw from you and do not fight you and offer you peace, then Allah has not given you a way against them.
89 is commonly believed to be regarding apostates. It's tough to unpack, because this Quran is believed to be during a time when there was an actual Kingdom, so the apostate would also be a traitor. That said, I think it's the apostasy that makes them the traitor, technically.