Jesus said, "If you know these things, you will be blessed if you do them." This statement of our Savior is very helpful for salvation, and we must ponder it attentively. We will be blessed if we know the heavenly commands, yet still more so if we eagerly pursue in our works the things that we know. One who neglects to keep his known commandments is not capable of being happy; one who scorns finding out about these [commandments] is separated much further away from the heritage of the blessed. The psalmist agrees with this. Weighing the hearts of mortals and in like manner perceiving that ever...yone loves happiness but few ask where it is, he clearly testified as to what is the greatest happiness of human beings in this life, saying, "Blessed are those who are undefiled in the way, who walk in the Lord's law." And lest it be supposed that this way of the undefiled and blessed can be laid hold of indiscriminately by the ignorant and the untaught, he subsequently continued and said, "Blessed are they who search his testimonies and seek him with their whole heart."
Source: Homilies on the Gospels 2:5