The Obligation to Write A Book
Sefer Chassidim #530:
Hashem preordains the number of books a person will write during his lifetime. He may decree that a person will write one, two, or three books or whether a person will discover new insights in the Talmud, detect ancient manuscripts, decipher foreign languages, or solve other mysteries. And if Hashem reveals something to a person and he does not publish it, he is, in fact, robbing the One who revealed it. Hashem revealed it to him only that he publicize it, as it says, “The secret of Hashem is for those who fear Him, so that they will make known His covenant” (Tehillim 25:14). The same idea is expressed in the verse, “Your springs will gush forth in streams in the public squares” (Proverbs 5:16).
Hashem preordains the number of books a person will write during his lifetime. He may decree that a person will write one, two, or three books or whether a person will discover new insights in the Talmud, detect ancient manuscripts, decipher foreign languages, or solve other mysteries. And if Hashem reveals something to a person and he does not publish it, he is, in fact, robbing the One who revealed it. Hashem revealed it to him only that he publicize it, as it says, “The secret of Hashem is for those who fear Him, so that they will make known His covenant” (Tehillim 25:14). The same idea is expressed in the verse, “Your springs will gush forth in streams in the public squares” (Proverbs 5:16).