While eating at the house of Matthew, Jesus tells the Pharisees to learn the meaning of Hosea 6v6, which he quotes. “For I desire steadfast love and not sacrifice, the knowledge of God rather than burnt offerings.”
Love and knowledge take more time and effort to develop than simply sacrifices and rule following. David appreciated this when he wrote Psalm 17. He knew that the love of God and a close relationship was vital for surviving the trials of life. “I call upon you, for you will answer me, O God; incline your ear to me; hear my words. Wondrously show your steadfast love, O Savior of those who seek refuge from their adversaries at your right hand.”
He also knew the importance of knowledge. “by the word of your lips I have avoided the ways of the violent. My steps have held fast to your paths; my feet have not slipped.”