“It is not for a prophet to have captives [of war] until...”
Cited by Sh. Yasir Qadhi to explain the wisdom behind not executing the Badr prisoners of war outright.
This is a direct paraphrase/asbab al-nuzul: this ayah was revealed rebuking the decision to ransom the Badr captives rather than execute them, echoed almost word-for-word in the post.