This is from Hagakure: The Book of the Samurai:
A warrior should not say something fainthearted even casually. He should set his mind to this beforehand. Even in trifling matters the depths of one’s heart can be seen.
Heed this wisdom and show the enemy your resolve.

