"In the end," [Solomon] says, "you will find what seemed sweet in the beginning to be more bitter than gall and sharper than the edge of a sword." But the nature of righteousness is the opposite: In the beginning, it seems more bitter, but in the end, when it produces fruits of virtue, it is found to be sweeter than honey.
Source: HOMILIES ON JOSHUA 14:2