[Machine] The Messenger of Allah ﷺ stood up and addressed the people. He said, "O people, what compels you to continue in falsehood?" Zuhair said, "I think he said, 'Just as moths gather in fire, every lie is recorded against the son of Adam, except for three situations: a man who lies to his wife to make her pleased, or a man who lies between two Muslim women to reconcile between them, or a man who lies in the midst of war deception.'" And the wording is from the hadith of Ahmad ibn Yunus.
أَنَّ رَسُولَ اللهِ ﷺ قَامَ فَخَطَبَ النَّاسَ فَقَالَ يَا أَيُّهَا النَّاسُ مَا يَحْمِلُكُمْ عَلَى أَنْ تَتَابَعُوا فِي الْكَذِبِ قَالَ زُهَيْرٌ أُرَاهُ قَالَ كَمَا يَتَتَابَعُ الْفَرَاشُ فِي النَّارِ كُلُّ الْكَذِبِ يَكْتُبُ عَلَى ابْنِ آدَمَ إِلَّا ثَلَاثَ خِصَالٍ رَجُلٌ يَكْذِبُ امْرَأَتَهُ لِيُرْضِيَهَا أَوْ كَذِبَ رَجُلٌ بَيْنَ امْرَأَيْنِ مُسْلِمَيْنِ لِيُصْلِحَ بَيْنَهُمَا أَوْ رَجُلٌ كَذِبَ فِي خَدِيعَةِ حَرْبٍ وَاللَّفْظُ لِحَدِيثِ أَحْمَدَ بْنِ يُونُسَ