Maulana Dawood Raz
Hadith Commentary:
Although Ka'b (radi Allahu anhu) did not participate in the Battle of Badr either, since in Badr the Messenger of Allah (sallallahu alayhi wa sallam) did not set out with the intention of battle, he did not make it obligatory for everyone to go out. In contrast, in the Battle of Tabuk, there was a command for all Muslims to go along; therefore, those who did not go were reproached for this reason.
Source: Sahih Bukhari: Commentary by Maulana Dawood Raz, Page: 3951
Shaykh Abdul Sattar al-Hammad
Hadith Commentary:
1.
Imam Bukhari rahimahullah has mentioned a portion of the hadith of Ka'b bin Malik radi Allahu anhu. Its detailed mention will come later; however, at this point, the background of the Battle of Badr is intended to be explained: the Messenger of Allah sallallahu alayhi wa sallam did not set out with the intention of battle, but rather, his purpose was only to intercept the caravan of Abu Sufyan, which was returning from the region of Syria after purchasing weapons. When the Messenger of Allah sallallahu alayhi wa sallam received news of this, he devised a plan to seize the military equipment from them, because in such emergency situations, seizing weapons from the enemy is the best military strategy; on the contrary, showing leniency in such circumstances is a political mistake.
2.
Allah, the Exalted, had promised the Messenger of Allah sallallahu alayhi wa sallam that He would grant him success over one of the two groups—the trade caravan or the army—but the noble Companions radi Allahu anhum ajma'in preferred success over Abu Sufyan's caravan, because there was hope of obtaining military equipment without fighting. Abu Sufyan took the coastal route and succeeded in getting his caravan past the Muslims safely. Meanwhile, Abu Jahl set out from Makkah with a force of one thousand to aid this caravan, and thus, at the place of Badr, a great battle between truth and falsehood took place.
3.
The Messenger of Allah sallallahu alayhi wa sallam did not set out from Madinah Tayyibah with the intention of war. Therefore, Allah, the Exalted, did not express any displeasure towards those who did not participate in the Battle of Badr. However, the matter of the Battle of Tabuk was different from this. In that instance, all Muslims were commanded to go out for battle, so those who did not go were subjected to reproach, among whom was Ka'b bin Malik radi Allahu anhu as well.
Source: Hidayat al-Qari: Commentary on Sahih Bukhari, Urdu, Page: 3951