One of the Pharisees tested Jesus with a question, "Teacher, which is the greatest commandment in the Law?" (Matthew 22:36 NIV). Jesus replied, " 'Love the Lord your God with all your heart and with all your soul and with all your mind.' This is the first and greatest commandment. And the second is like it: 'Love your neighbor as yourself.' All the Law and the Prophets hang on these two commandments" (Matthew 22:37-40 NIV).
Matthew explains the love triangle of God, neighbor, self.