God did not allow believers to make friendship with those who removed them from their homes and possessed the intention to harm them!
Verses 1-3
of Chapter 60:
O you who have believed, if you have come out (from your
homes and emigrated) in order to fight in My way and to seek My goodwill, then
do not make friends with My enemies and your enemies. You show them friendship
even though they have refused to believe in the Truth that has come to you,
while they drive out the Messenger and you away only because you believe in
Allah, your Lord. You send them friendly messages secretly, whereas I know full
well whatever you do secretly and whatever you do openly. Whoever from among
you does so, has indeed gone astray from the right way. If these people
overcome you, they will be enemies to you and will use their hands and their
tongues to harm you. They wish that you should turn unbelievers somehow. On the Day of Resurrection neither will your
relationships avail you anything nor your children. Allah on that
Day shall cause separation between you,
and He is Seer of whatever you do.
Verses 8-9
of Chapter 60:
Allah does not forbid you to treat kindly and
act equitably towards those who have neither fought you in the matter of
religion nor driven you out of your homes. Indeed Allah loves the just. He
only forbids you to take for friends those who fought you in the matter of
religion, and drove you out of your homes, and cooperated with others in your
expulsion. Those who take them for friends are indeed the wrongdoers.