qnli question: Prisoners from which battle are thought to have helped Muslims learn to write? sentence: According to hadith and Muslim history, after Muhammad immigrated to Medina and formed an independent Muslim community, he ordered many of his companions to recite the Quran and to learn and teach the laws, which were revealed daily.