True Believers and Hypocrites

What befell you on the day the two armies met was by Allah’s permission, so He could distinguish the true believers.

3:166That which befell you, on the day when the two armies met, was by permission of Allah; that He might know the true believers;