Awn bin Abdullah narrates from his father (may Allah be pleased with him) that he (peace and blessings be upon him) did not die until he had written and read, that is, until he had learned.
This hadith is munqati' (its chain is broken), and among its narrators are a number of weak and unknown narrators. And Allah Almighty knows best.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النكاح / 13290