John 14:15

15 If you love Me, you will keep My commandments.
21 He who has My commandments and keeps them is the one who loves Me; and he who loves Me will be loved by My Father, and I will love him and will disclose Myself to him.

Matthew 22:34-40

But when the Pharisees heard that Jesus had silenced the Sadducees, they gathered themselves together.  One of them, a lawyer, asked Him a question, testing Him, “Teacher, which is the great commandment in the Law?”  And He said to him, “‘You shall love the Lord your God with all your heart, and with all your soul, and with all your mind.’  This is the great and foremost commandment.  The second is like it, ‘You shall love your neighbor as yourself.’  On these two commandments depend the whole Law and the Prophets.