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:
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.