The Family Of Imran - 3:153
You were climbing the hill without looking back at anyone, although the Messenger called you from behind. He gave you sorrow upon sorrow so that you might not grieve for what you had lost and what had happened to you. Allah is All-Knowing of what you do.
Related:
The Repentance/9:25
Allah helped you on many occasions. On the day of Hunayn you were proud of your numbers. But your numbers did you no good. Indeed, the earth became narrow for you despite its vastness and you turned and fled.
The Coalition/33:11
The believers were tried there and shaken violently.
The Coalition/33:12
"The hypocrites and those whose hearts were diseased were saying: "The promise of Allah and His messenger to us is nothing but a pipe dream!"
The Coalition/33:13
"A group of them were saying, "People of Yathrib, you cannot hold on any longer; go back."The other group of them were asking permission from the Prophet, saying, "Our houses are unprotected,"even though their houses were protected. Their whole purpose was to escape."