It is revealed later that he left a final letter to Neji, and it told him to never give up on changing his destiny.
It is revealed later that he left a message for Neji with Hiashi. In the anime, this is changed to a letter telling him never to give up on changing his destiny.