From Islamic perspective, the most important criterion in victory and failure is "morality". The one who seems to be victorious but loses his morality inwardly has actually failed.
Imam Sadiq (peace be upon him) says: "the one who wins by oppression has not achieved victory." Maani ul-Akhbar: 170
source : erfan.ir