Three ways of being beaten
The third one is not about losing at all.
أَعُوذُ بِكَ مِنْ غَلَبَةِ الدَّيْنِ وَغَلَبَةِ الْعَدُوِّ وَشَمَاتَةِ الأَعْدَاءِ
Aʿūdhu bika min ghalabati-d-dayni wa ghalabati-l-ʿaduwwi wa shamātati-l-aʿdāʾ
“I seek refuge in You from being overcome by debt, and from being overcome by an enemy, and from the gloating of enemies.”
Where this comes from
Two of them are the defeat. The third is what other people do about it afterwards, and it is asked about separately, as its own harm.
The full narration
It was narrated from 'Abdullah bin 'Amr bin Al-'As that:The Messenger of Allah [SAW] used to say these words in his supplication: "Allahumma inni a'udhu bika min ghalabatid-dain, wa ghalabatil-'aduwwi, wa shamatatil-a'da'. (O Allah, I seek refuge with You from being overwhelmed with debt, from being overpowered by the enemy and from the enemy rejoicing over my misfortunes)
Source
Sunan an-Nasā'ī · 5475
- Abu Ghuddah: Sahih
- Al-Albani: Sahih
- Zubair Ali Zai: Isnaad Hasan