Sayyiduna Thawban (may Allah be pleased with him), the freed slave of the Prophet (peace and blessings be upon him); I think that he narrated it as a marfu' hadith. The Prophet (peace and blessings be upon him) said: "Lying is recorded, except for that by which a Muslim is benefited or by which something harmful is warded off (from him)."
Al-Bazzar recorded it. Its chain contains Rishdin and other weak narrators.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الأدب / 13058