It is narrated from Sayyidah Asma' bint Yazid al-Ansariyyah (may Allah be pleased with her) that the Messenger of Allah (peace and blessings be upon him) stood up and addressed the people, saying: "O people! What drives you to rush into lying one after another" - Zuhayr (the narrator) said: I think he (peace and blessings be upon him) said: - "as moths rush one after another into the fire? Every lie is recorded against the son of Adam except in three traits: a man who lies to his wife to please her, or a man who lies between two Muslims to reconcile them, or a man who lies in the deception of war."
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 20792