The Prophet (SAWA) said, 'When someone with good habits does something good it is accepted from him, and even if he makes a mistake, he is forgiven for it.
رسولُ اللهِ (صَلَّيَ اللهُ عَلَيهِ وَ آلِهِ): صاحِبُ السُّنَّةِ إن عَمِلَ خَيراً قُبِلَ مِنهُ ، وإن خَلَطَ غُفِرَ لَهُ.