Sunan Abi Dawud

Hadith #2691

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