If defeat befalls the kuffaar, then that is what it is, because Allah says:
“And cast terror into their hearts.
If it happens to the Muslims, it indicates that they will prevail,because Allah says:
If the dreamer sees righteous troops entering the city defeated, theywill prevail, but if they are wrongdoers, punishment will befall them,because Allah says:
“a defeated host like the Confederates of the old times (who were defeated).”