Lord Krisna in the battle field when Arjuna refused to take up arms advised him that " arjuna whether we will win this war or not I donnot know how ever you are a kshtriya. & it is the swadharma of a Kshatriya to fight the righteous war . If you win then you will rule the world & if you are myrtered the u will be rewarded with a place in the heaven. " hence although Krisna was all knowing he did not assure arjuna of victory but asked him to perform his swadharma i.e Karma without thinking of the fruits of his actions