Vain Knowledge

Imam Musa entered the Masjid of the Prophet, peace be on them, and saw some people surrounding a man, magnifying him and going too far in honoring him. So he, peace be on him, said to one of his companions: 
-What is that (man)?
-'Allama (a scholar).
-(In which science) is he 'allama?
-He is the most knowledgeable in the lineage and battles of the Arabs.
-Such a science does not harm him who has no knowledge of it and does not benefit him who has knowledge of him.
Then Imam Musa turned to his companions and explained to them the beneficial science for whose acquiring they had to spend their life. He said to them:
"Science is of three kinds: a clear verse or a just (religious) duty or a standing sunna, other than them is surplus."
Genealogy or having knowledge of events of a war do not grow intellect nor it makes a human civilization nor it creates a progress and development in the life of the Muslims. For it is a science that does not harm him who has no knowledge of it and does not benefit him who has knowledge of him. For this reason the Imam regarded it as unimportant and urged the Muslims to spend their time on science other than it.



Reference : THE LIFE OF IMAM MUSA BIN JA'FAR AL-KAZIM