It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) fixed the ransom of the captives of Badr at four hundred (dirhams).
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12776