Sunan Abi Dawud, Book 15, Hadith 215 (Abu Dawud 2692)

Narrated Abdullah ibn Abbas:

The Prophet (ﷺ) fixed the ransom of the people of pre-Islamic Arabia at four hundred dirhams per head on the day of the battle of Badr.