It is narrated from Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) that the noble companions (may Allah be pleased with them) sought permission from the Prophet (peace and blessings be upon him) to write down hadith, but he did not grant them permission for this.
Related hadith on this topic