It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Any Muslim who dies, and four people from the households of his nearest neighbours testify in his favour that they know nothing of him but good, Allah, the Mighty and Majestic, says: 'I have accepted your knowledge (testimony), and I have forgiven him those (sins) of his that you do not know.'"
Imam Ahmad bin Hanbal (may Allah have mercy on him) narrated it from Mu'ammal (may Allah have mercy on him).
And Abu Hatim Muhammad bin Hibban (may Allah have mercy on him) narrated it in his book from Abu Ya'la al-Mawsili (may Allah have mercy on him).
And this hadith has also been narrated with wording other than this.