Abu Ishaq narrates from an elder that a man asked the Prophet (peace and blessings be upon him): "How can I know that I have done good?" He (peace and blessings be upon him) said: "When your neighbours say that you have done good, then you have certainly done good; and if they say that you have done wrong, then you have indeed done wrong."
Imam Musaddad recorded it. It also has a supporting narration (shahid) from the hadith of Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him), which Ibn Majah and Ibn Hibban in his Sahih recorded.