Sunan Abi Dawud, Book 43, Hadith 148 (Abu Dawud 4922)

Humaid b. 'Abd al-Rahman quoted his mother as saying:

The Prophet (ﷺ) said: He who forged in order to put things right between two persons did not lie. The version by Ahmad ibn Muhammad and Musaddad has: The liar is not the one who puts things right between people, saying what is good and increasing good.