This verse came when there was a fight between the Muslims and Non Muslims and God said to the the Muslims if you fight those non Muslims I will punish them (The non Muslims will suffer more because God is also against them), and at that time some Muslims hated the non Muslims to a very big extent and the verse came to push the Muslims forward and calm them down.
Also you have to know the fighting conditions:
1. No fighting who does not fight you either child or man or woman or old man or old woman.
2. Not cutting any tree
3. Not fighting some one who does not have weapon.
and there are many other conditions.
This verse came when there was a fight between the Muslims and Non Muslims and God said to the the Muslims if you fight those non Muslims I will punish them (The non Muslims will suffer more because God is also against them), and at that time some Muslims hated the non Muslims to a very big extent and the verse came to push the Muslims forward and calm them down.
Also you have to know the fighting conditions:
1. No fighting who does not fight you either child or man or woman or old man or old woman.
2. Not cutting any tree
3. Not fighting some one who does not have weapon.
and there are many other conditions.