(So, when you meet those who disbelieve (in battle), smite their necks) which means, `when you fight against them, cut them down totally with your swords.'
حَتَّى إِذَآ أَثْخَنتُمُوهُمْ
(until you have fully defeated them,) meaning, `you have killed and utterly destroyed them.'
فَشُدُّواْ الْوَثَاقَ
(tighten their bonds.) `This is referring to the prisoners of war whom you have captured. Later on, after the war ends and the conflict has ceased, you have a choice in regard to the captives: You may either act graciously toward them by setting them free without charge, or free them for a ransom that you require from them.' It appears that this Ayah was revealed after the battle of Badr. At that time, Allah reproached the believers for sparing many of the enemy's soldiers, and holding too many captives in order to take ransom from them. So He said then:
سَيَهْدِيهِمْ وَيُصْلِحُ بَالَهُمْ (He will guide them, and will set aright their state of affairs - 47:5). This sentence refers to two of Allah's bounties: First, He will steer them by His guidance; and secondly, He will improve their conditions. The word "state of affairs" includes the conditions of both the worlds - those of this world and those of the Hereafter. Even if a Muslim did not acquire the glorious privilege of a martyr in this world, he too will receive the reward of a martyr; and in the Hereafter he will be spared the torment of the grave and the anxiety of resurrection. If he violated the rights of some human beings, Allah will take upon Himself the responsibility of vindicating him and clearing him of all blame. Steering them by His guidance through the Holy Prophet ﷺ means causing them to reach their desired destination which is the Paradise. The Qur'an says that the inmates of Paradise, having entered the gardens of Paradise, will show their gratitude to Allah by saying:
الْحَمْدُ لِلَّـهِ الَّذِي هَدَانَا لِهَـٰذَا
"All praise to Allah who has led us unto this. [ 7:43].
Tazkirul Quran
Maulana Wahiduddin KhanOn ayahs 3–5
In ancient Arabia, the deeds of those who denied the prophethood of the Prophet Muhammad and opposed him, counted for nothing. In other words, since they did not prove to be religious on the level of moral awareness, their achievements, performed as a matter of conventional and traditional religiosity, became valueless. The people of ancient Arabia used to consider themselves the community of Abraham and Ishmael. They also had the honour of being the custodians of the Kabah. The customs of prayer, fasting and Hajj in some form or the other were also prevalent among them. The serving of Hajj pilgrims, good treatment of relatives, and hospitality towards guests were also social requirements. Though the ancient Arabs acquitted themselves well on all these scores, their actions were not the outcome of their conscious religiousness. They performed all these deeds simply because it had been the custom to do so for centuries. In order to recognise the prophet of the time, it was necessary for them to have heightened their own awareness. At that time, the force of ancient traditions had not yet built up around the Prophet Muhammad. Therefore, only one who was capable of recognising reality through deep personal perception could have acknowledged him. In this context, when they rejected their contemporary prophet, it was clearly established that their religiousness was based purely on tradition and not on personal realization. And God requires religiousness in spirit not in form devoid of spirit. Those, however, who embraced the faith of the Prophet of their own times, proved that they were capable of being religious at a heightened level of consciousness.