And that He may purify the believers (individually, of all base metal, and collectively, of the hypocrites among them) and gradually blot out the unbelievers
And that Allah may prove (i.e. purge them by clearing out the hypocrites and confirming the believers) (the ones) who have believed and expunge the disbelievers
And this is (also) with the intention that Allah may bring (more) refinement to the believers (i.e., cleanse and purify them) and annihilate the disbelievers
(These events are so) that Allah purifies the believers (through these experiences) and to destroy the coverers of the reality thereby.
Sayyed Abbas Sadr-Ameli
And that Allah may purge those who believe and wipe out the disbelievers
Al-muntakhab fi tafsir al-Qur'an al-Karim
And Allah fits those whose hearts are impressed with the image of religious and spiritual virtues so purified to rid them of doubt and of those who are hypocrites and to massacre the infidels who deny Him