These prisoners were literate people. In order to benefit from their education the Prophet declared that if one prisoner teaches ten Muslim children how to read and write, this will serve as his ransom and he will be set free. This was the first school in the history of Islam established by the Prophet himself with all its teachers being non-Muslims. The Sunnah of the Prophet shows that education is to be received whatever the risk involved.