008.012 Remember thy Lord inspired the angels (with the message): "I am with you: give firmness to the Believers: I will instill terror into the hearts of the Unbelievers: smite ye above their necks and smite all their finger-tips off them."
This verse and the verses before and after were revealed about the Battle of Badr, which occurred in Arabia in the early seventh century. A battle in which the pagans of Makkah traveled more than 200 miles to Madinah with an army of about 1000 to destroy Muslims. Prophet Muhammad (peace be on him) and fellow Muslims had suffered severe persecutions and torture for 13 years in the city of Makkah. And now that they had fled Makkah and found a sanctuary in the city of Madinah, they were once again threatened. Muslim Army was only about 300 strong. God Almighty gave the order to Muslims to fight to defend their lives and faith. The enemy came to them with the intent to kill Muslims. It was a war to defend themselves and their Faith. It was a war imposed upon Muslims.