(139) So do not weaken and do not grieve, and you will be superior if you are [true] believers. (140) If a wound should touch you - there has already touched the [opposing] people a wound similar to it. And these days [of varying conditions] We alternate among the people so that Allah may make evident those who believe and [may] take to Himself from among you martyrs - and Allah does not like the wrongdoers. (141) And that Allah may purify the believers [through trials] and destroy the disbelievers. (142) Or do you think that you will enter Paradise while Allah has not yet made evident those of you who fight in His cause and made evident those who are steadfast? (143) And you had certainly wished for martyrdom before you encountered it, and you have [now] seen it [before you] while you were looking on.
(165) Why [is it that] when a [single] disaster struck you [on the day of Uhud], although you had struck [the enemy in the battle of Badr] with one twice as great, you said, "From where is this?" Say, "It is from yourselves." Indeed, Allah is over all things competent. (166) And what struck you on the day the two armies met was by permission of Allah that He might make evident the [true] believers.

404!