Why did Jesus say we need to fear God?
Are you referring to Luke 12:5?
What is the lesson here?
4: "And I say unto you my friends, Be not afraid of them that kill the body, and after that have no more that they can do."
He's saying to be brave in the face of persecution.
5: "But I will forewarn you whom ye shall fear: Fear him, which after he hath killed hath power to cast into hell; yea, I say unto you, Fear him."
If you're going to fear anything, then the bigger fear is surely God, because whereas your persecutors can only destroy the body, God can send the soul to perdition.
6: "Are not five sparrows sold for two farthings, and not one of them is forgotten before God?"
7: "But even the very hairs of your head are all numbered. Fear not therefore: ye are of more value than many sparrows."
These two verses counterbalance the 'threat' of the prior verse – sparrows are sold in the marketplace for a pittance, but God knows and numbers every living thing ... likewise you are known to God, and loved by Him, and your worth to Him, as a 'labourer in his vineyard' is worth more than a flock of sparrows.
+++
What is the greatest commandment?
Love God – not fear Him.
"God is love; and he that dwelleth in love dwelleth in God, and God in him." (1 John 4:16)
Those who live in God live in the light, and they love God, and do not fear Him – one cannot love the thing one fears.
+++