It was not you who killed them but God, and when you [Prophet] threw [sand at them] it was not your throw [that defeated them] but God’s, to do the believers a favour: God is all seeing and all knowing-
It is not ye who slew them; it was Allah: when thou threwest (a handful of dust), it was not thy act, but Allah's: in order that He might test the Believers by a gracious trial from Himself: for Allah is He Who heareth and knoweth (all things).