"Muhammad said: Lying is wrong, except in three things: the lie of a man to his wife to make her content with him; a lie to an enemy, for war is deception; or a lie to settle trouble between people" -- Ahmad, 6.459.
You forgot what Muhammad said after that:
“If telling the truth gets you more woman, booze and money, go for it!”