The author - may Allah shower blessings on him - mentioned this hadeeth under the Chapter of Truthfulness, and the point in it is his saying, "He who asks Allah for martyrdom, with truth..." Martyrdom is a high rank next to that of the ever truthful persons as Allah - free is He from all imperfections - says:
"And whosoever obeys Allah and the Messenger, such will be in the company of those whom Allah has bestowed His Grace, [they are] of the Prophets, the Siddiquun (those followers of the Prophets who were foremost in belief, like Abu Bakr As-Siddeeq,
may Allah be pleased with him), the martyrs and the righteous.”
(An-Nisa: 69)
And it is of different categories:
Such as: Shahaadatu (witnessing) the legislations of Allah – the Mighty and Sublime – over Allah’s servants. This is the witnessing of the scholars regarding which Allah said,
“Allah bears witness that none has the right to be worshipped but He, so also do the angels [bear witness], and those who have knowledge.” (Al-Imran: 18)
Some of the scholars have explained that His saying, “Shuhadaa (in the verse but translated as martyrs)” refers to the scholars. And undoubtedly, the scholars are Shuhadaa (witnesses); they witness that Allah the Exalted has sent His Messenger, Muhammad (ﷺ) with the guidance and the true religion. Likewise, they bear witness over the Ummah that Allah’s legislations reached it and explain Allah’s laws saying: this is allowed and that is prohibited, this is obligatory and the other is recommended and the other is disliked. No one knows this except the people of knowledge, and for that reason, they are witnesses.
Among the Shuhadaa also are: the one who falls victim of an epidemic or who dies of a stomach related illness or an inferno or drowning and their likes.
Among them as well are: those who were killed on the path of Allah.
Among the Shuhadaa are those killed while defending their property and life according to the Prophet (ﷺ) when a man enquired that, “What would you advice, Messenger of Allah, if a man comes to me asking for my wealth – forcefully?” He answered, “Do not give him your wealth.” He then said, “What if he fights me?” He replied, “Fight him too.” The man said, “What if I happen to kill him?” He (ﷺ) said, “He will be in the Fire – because he is aggressor, an oppressor.” The man asked, “But what if he kills me?” He said, “Then you are a Shaheed (martyr).” “What if I kill him?” He answered, “He will be in the Fire.”(1)
The Prophet (ﷺ) also said: “Whoever is killed while protecting his blood is a martyr, and whoever is killed defending his family is a
martyr and whoever is killed guarding his wealth is a martyr.”(1)
Likewise, among the Shuhadaa (martyrs) are those killed unjustly; for example: some one aggresses against him and kills him in cold blood – unjustly – such is also a martyr.
However, the noblest of the Shuhadaa are those killed in the cause of Allah as Allah the Exalted said,
“Think not of those who are killed in the way of Allah as dead. Nay, they are alive, with their Lord, and they have provision. They rejoice in what Allah has bestowed upon them of His Bounty and rejoice for the sake of those who have not yet joined them, but are left behind (not yet martyred) that on them fear shall come, nor shall they grieve. They rejoice in a Grace and Bounty from Allaah, and that Allaah will not waste the reward of the believers.” (Al-Imran: 169-171)
The martyrs mentioned in that verse are those who fought so that Allah’s words reign supreme. They did not fight to personal benefits or to seek so wealth; they have only fought so that the word of Allah is supreme as the Prophet (ﷺ) said when he was asked about a man who would fight to show bravery or out of tribal pride or for status; which of them is in Allah’s path? He – peace and blessings be upon him – said, “Whoever fights so that Allah’s words reigns supreme is that for the path of Allah.”(2)
This is the standard of justice established by the Prophet (ﷺ); the individual should weigh his own deeds therewith.
Therefore, whoever fights for this Word does so in the cause of Allah; if you are killed, you are a martyr but if you return with spoils, then you are successful as Allah – free is He from all imperfections – has said,
“Say: ‘Do you wait for us but to attain one of the two (martyrdom
or victory)?”
So it is either martyrdom or triumph with booty.
“While we await for you either that Allaah afflicts you with a punishment from Himself, or at our hands.” (At-Tawbah: 52)
That is, it's either punishes you and protect us from your evil as He the Exalted did against the confederates who gathered against Madeenah seeking to fight the Messenger (ﷺ) and Allah sent a violent wind against them along with forces casting fear in their hearts; “... or at our hands” as it happened at Badr. There, Allah punished the idolaters at the hands of the Messenger (ﷺ) and his companions. The individual who fights to make Allah's Word supreme is the martyr.
If an individual asks his Lord and says: “O Allah, I ask you for martyrdom in your path – and there is no such martyrdom except through participating in battle fought to make Allah's word reign supreme -, if Allah sees his truthfulness and intention; He places him in the rank of the martyrs even if he dies on his bed.
It remains for us to discuss the one fighting to defend his land: Is it in the path of Allah or not?
We say: If you are fighting for your country because it is an Islamic country; and so you intend to protect it on account of its being an Islamic country, that is for Allah's path since you're fighting to make Allah's Word supreme.
But if you fight just because it is a country; then that is not for the sake of Allah because the measure put in place by the Prophet (ﷺ) that the one who fights that Allah's Word is supreme fights in Allah's path would not have been followed. Therefore, it is obligatory for the individual to make his intention right while fighting in defence of his country. He should intend fighting to guard the land because it is an Islamic land. So, his intention is to protect the Islam therein and then, if he is killed, he gains the reward of martyrdom. And if he returns victorious, he is successful, having booty in addition. It's either the gains of booty in this world or success in the hereafter.
This matter had been explained previously.
Allah alone grants success.