Battle of Hunayn

Allah has already helped you in many battles, including the day of Hunayn, when your numbers made you proud but did not benefit you. The earth felt narrow despite its vastness, and you turned away.

9:25Allah hath given you victory on many fields and on the day of Huneyn, when ye exulted in your multitude but it availed you naught, and the earth, vast as it is, was straitened for you; then ye turned back in flight;

Then Allah sent down His tranquillity upon His Messenger and the believers, and He sent unseen forces against the disbelievers, punishing them. This is the fate of the disbelievers.

9:26Then Allah sent His peace of reassurance down upon His messenger and upon the believers, and sent down hosts ye could not see, and punished those who disbelieved. Such is the reward of disbelievers.

Yet Allah accepts repentance from whomever He wills.

9:27Then afterward Allah will relent toward whom He will; for Allah is Forgiving, Merciful.