Shortly after Muhammad's death, the Quran was compiled by his companions who wrote down and memorized parts of it.