During the life of the Prophet Muhammad, his companions began preserving his sayings and words by collecting and writing them down