Abu Umamah reported: A man asked the Messenger of Allah, peace and blessings be upon him, “What is faith?” The Prophet said, “If you are happy with your good deeds and saddened by your bad deeds, you are a believer.” The man said, “O Messenger of Allah, what is sin?” The Prophet said, “If something waivers in your soul, you should leave it.”
Source: Musnad Aḥmad 21695
Grade: Sahih (authentic) according to Al-Albani
عَنْ أَبِي أُمَامَةَ أَنَّ رَجُلًا سَأَلَ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَا الْإِيمَانُ قَالَ إِذَا سَرَّتْكَ حَسَنَتُكَ وَسَاءَتْكَ سَيِّئَتُكَ فَأَنْتَ مُؤْمِنٌ قَالَ يَا رَسُولَ اللَّهِ فَمَا الْإِثْمُ قَالَ إِذَا حَاكَ فِي نَفْسِكَ شَيْءٌ فَدَعْهُ
21695 مسند أحمد باقي مسند الأنصار
1739 المحدث الألباني خلاصة حكم المحدث إسناده صحيح في صحيح الترغيب