Losing Courage
Allah fulfilled His promise to you when, by His will, you were victorious. But when you faltered, disputed the command, and disobeyed after seeing what you desired, some of you sought worldly gain while others sought the Hereafter. Then He turned you away to test you, yet He forgave you.
3:152Allah verily made good His promise unto you when ye routed them by His leave, until (the moment) when your courage failed you, and ye disagreed about the order and ye disobeyed, after He had shown you that for which ye long. Some of you desired the world, and some of you desired the Hereafter. Therefore He made you flee from them, that He might try you. Yet now He hath forgiven you. Allah is a Lord of Kindness to believers.