qnli question: Prisoners from which battle are thought to have helped Muslims learn to write? sentence: It is related that some of the Quraysh who were taken prisoners at the battle of Badr regained their freedom after they had taught some of the Muslims the simple writing of the time.