“A man came to the Prophet ﷺ and said: ‘O Messenger of Allah, how can I know, when I have done something good, that I have done well, and if I have done something bad, that I have done a bad deed?’ The Messenger of Allah ﷺ said: ‘If your neighbors say that you have done something good, then you have done well, and if they say that you have done something bad, then you have done something bad.’” (Using translation from Ibn Mājah 4222)
أَتَى النَّبِيَّ ﷺ رَجُلٌ فَقَالَ يَا رَسُولَ اللهِ كَيْفَ لِي أَنْ أَعْلَمَ إِذَا أَحْسَنْتُ أَنِّي قَدْ أَحْسَنْتُ وَإِذَا أَسَأْتُ أَنِّي قَدْ أَسَأْتُ؟ فَقَالَ رَسُولُ اللهِ ﷺ إِذَا قَالَ لَكَ جِيرَانُكَ قَدْ أَحْسَنْتَ فَقَدْ أَحْسَنْتَ وَإِذَا قَالَ لَكَ جِيرَانُكَ قَدْ أَسَأْتَ فَقَدْ أَسَأْتَ