Author's Riddles

Question: A wise person was once sentenced to death by a king. The king couldn't decide how to execute him so he said to the wise person, you can say anything you want, if it is true, I will hang you, if it is not true I will shoot you. In the end the king released the wise man. What did the wise man say?