As per Shastra, is it necessary for a Brahmin to impart the spiritual knowledge which he has attained to others?

Does he incur any sin if he fails to do so?