He thinks they won - he saw that much. They wouldn't have, if he hadn't been there to lead them. If he hadn't torn the warning of the attack from the screaming prisoner, if all of them hadn't hurried across two countries while barely anyone believed them about the war that was about to break out. At least here, they won, and so he doesn't very much mind that he died in accomplishing it.
... He wishes he could have died in his own country, not defending the same castle from his countrymen for the second time in fifteen years. He wishes he could have died somewhere they'd give his body to the god, not the goddess who isn't his even though he's learned not to hate her. He wishes he could have seen his king again, and asked him if he had done well. But none of it matters very much, really. He did what he could, and now other people will do what they can, and that is all anyone can ever ask for.