The Sultan of a great city was annoyed by the cheats and liars who entered his gates and caused trouble. He therefore set soldiers at all entrances. The soldiers were under orders to hang those who lied about their purpose for wishing to enter.
The Mullah Nasreddin saddled his donkey and rode to the city.
At the gate a guard stopped him and asked his purpose in wishing to enter and warned him that a lie would result in his being hanged.
“This is good for I have come to be hanged.” Said Nasreddin.
“You are a liar and will certainly hang!” Said the guard
“Then you know I have spoken the truth and should not be hanged.” said Nasreddin.