Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) narrates: The Prophet (peace and blessings be upon him) said to Sayyiduna Ali (may Allah be pleased with him): "Hand me a handful of pebbles." He handed them to him, and the Prophet (peace and blessings be upon him) threw them towards the enemy. Not a single one of the enemy remained whose eyes were not filled with those pebbles (that is, affected by them). Concerning this, this verse was revealed: "When you threw the pebbles, it was not you who threw them, but Allah Almighty who threw them."
Al-Tabarani recorded it, and its narrators are the narrators of the Sahih.