Battle of Uhud
When disaster struck you, though you had inflicted twice as much upon your enemy, you asked, ‘How did this happen?’ Say, ‘It is from yourselves.’
3:165And was it so, when a disaster smote you, though ye had smitten (them with a disaster) twice (as great), that ye said: How is this? Say (unto them, O Muhammad): It is from yourselves. Lo! Allah is Able to do all things.