There was a scholar of the law who stood up to test him and said, "Teacher, what must I do to inherit eternal life?"A scholar of the law was called a scribe, and in Matthew's version of this Gospel the questioner is identified as a Pharisee. The first law is from Deuteronomy 6:5:
Jesus said to him, "What is written in the law? How do you read it?"
He said in reply, "You shall love the Lord, your God, with all your heart, with all your being, with all your strength, and with all your mind, and your neighbor as yourself."
He replied to him, "You have answered correctly; do this and you will live."
You shall love the Lord your God with all your heart, with all your soul, and with all your strength.