It was narrated from Jabir that :
the Messenger of Allah said: "Ask Allah for beneficial knowledge and seek refuge with Allah from knowledge that is of no benefit."