Sayyiduna Abdullah bin Mughaffal (may Allah be pleased with him) said: We were with the Messenger of Allah (peace and blessings be upon him) at al-Hudaybiyah. Abdullah related that meanwhile thirty young men came at us bearing weapons. The Prophet (peace and blessings be upon him) supplicated against them, and Allah Almighty took away their sight; then we seized them. The Messenger of Allah (peace and blessings be upon him) said to them: "Have you come under anyone's covenant, or has anyone given you a guarantee of safety?" They said: By Allah, no. He (peace and blessings be upon him) let them go, and Allah Almighty revealed this verse: "And it is He who restrained their hands from you and your hands from them in the valley of Makkah after He had given you victory over them. And Allah is ever Seeing of what you do." [Surah al-Fath: 24]
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قسم الفيء والغنيمة / 12833