It wasnarrated that 'Abdullah said:
"A man said to the Messenger ofAllah (ﷺ): 'How can I know when I have done well and when I havedone something bad?' The Prophet (ﷺ) said: 'If you hear yourneighbors saying that you have done well, then you have done well,andif you hear them saying that you have done something bad, thenyouhave done something bad.'"
English reference: Vol. 5, Book 37, Hadith 4223
Arabic reference: Book 37, Hadith 4363