The foundation of the ਛਤ੍ਰੀਅਾ [warrior] tradition of the Khalsa Panth is based upon the great merit awarded to the ਹਠੀਆ (meticulously hardworking) ਤਪੀਆ (devotionally guided) Singhs, who would perfect their ਵਿਦਿਅਾ [science/art] of fighting in order to uphold ਧਰਮਾ [poorly translated as righteousness]. The ethos holds dear to the philosophy that even those ਰਾਕਸ਼ [evil minded/demonic] beings who work hard and meticulously, gaining the attributes of ਸੂਰਮਤਾਈ [warrior-ship], will be blessed by ਪਰਮਾਤਮਾ [the Supreme Self] with His darshan and will attain ਮੁਕਤੀ [liberation] whilst dying in battle against the Lord.
From the Dasam Granth in Krishnavtar, the story of Kharag Singh speaks to this point when Kharag Singh tells Brahma he will not abandon his fight against Krishna:
ਪਰੀਯੈ ਨਹੀ ਆਨ ਕੇ ਪਾਇਨ ਪੈ ਹਰਿ ਕੇ ਗੁਰ ਕੇ ਦਿਜ ਕੇ ਪਰੀਯੈ ॥ ਜਿਹ ਕੋ ਜੁਗ ਚਾਰ ਮੈ ਨਾਉ ਜਪੈ ਤਿਹ ਸੋ ਲਰੀਯੈ ਮਰੀਯੈ ਤਰੀਯੈ ॥੧੬੮੮॥
Seek not the [worship] of anyone else's feet but those of Hari, the Guru, and Brahmins. That [Vishnu, i.e. Krishna] whose name is recited throughout the four ages, against Him by fighting and dying one is carried across [the dreadful ocean of the world, and into liberation].
- Krishnavatar, verse 1688
Below is ਕਥਾ [discourse] of Giani Inderjit Singh Ji, student of Sant Gurbachan Singh Ji Bhindranvale, describing the dialogue between Beerajnaad [the main antagonist in Sarbloh Granth] with Sarbloh Avatar.