During the 23 years of Muhammad's time as a prophet, the verses of the Quran were memorized as they were revealed, and about 42 scribes wrote the verses on different materials such as paper, cloth, bone fragments and leather.
In ancient times, literacy was a skill that few people had and Muhammad himself did not know how to read or write.