This hadeeth is contained in the Forty Hadeeths collection of the author, may Allah have mercy on him. In it, the Prophet (ﷺ) handed down three significant pieces of advice. The first advice: He said, "Fear Allah wherever you are." The fear of Allah is eschewing the prohibitions and carrying out the commandments; this is the fear of Allah. You do what Allah commanded you sincerely for Him while following the Messenger of Allah (ﷺ) in it. In addition, you abandon what Allah has prohibited in accordance to His prohibitions – free is He from all imperfections. Thus, you uphold what Allah makes obligatory for you regarding the greatest Pillar of Islam after the two Testimonies, which is the Prayer. You'll observe it perfectly with its conditions, pillars, obligatory aspects, adding the supererogatory prayers too.
Whoever breaches any of the conditions, obligations, or pillars of Prayer does not (truly) fear Allah. Rather, he is deficient in his piety in the same degree that he abandons Allah's orders on him about the Prayer. In relation to Zakat, the fear of Allah manifests by evaluating all your wealth due for the Zakat and giving out the due out of pleasure and without any reluctance, reduction or delay. Thus, whoever fails to
do this has not (rightly) feared Allah.
With respect to Fasting, you should observe it as you have been commanded. You refrain from vain talks and obscenity, tumult, backbiting, spreading calumny and other such things that undermine Fasting and take down the spirit of Fasting and its true essence, which is abstinence from Allah's prohibitions. Likewise other obligations, you should observe them out of obedience to Allah, compliance with His command, in sincerity to Him and following His Messenger. Similarly, the prohibition should be avoided in compliance with the orders of Allah - the Mighty and Sublime.
The second advice: "carry out good deeds after falling into bad ones, the latter will wipe out the former." That is, whenever you commit an iniquity, follow it up with a good deed since good deeds wipe out the evil one. One of the good deeds after the evil deeds is that you repent to Allah from the wrongdoings. Indeed, repentance is one of the superior good deeds as Allah - the Mighty and Sublime - says:
"Truly Allah loves those who turn to Him in repentance and loves those who purifies themselves." (Al Baqarah: 222)
And Allah - the Exalted - says:
"And all of you beg Allah to forgive you all, O believers, that you may be successful." (An-Noor: 31).
Equally, righteous deeds expiate wrongdoings. The Prophet (ﷺ) said, "The five (daily) prayers, Friday (prayer) to Friday (prayer), and Ramadan to Ramadan is expiation for what is between them as long as the grave sins are abandoned."(1)
He also said, "One Umrah to another Umrah is expiation for what is between them."(2) So, good deeds cancel out misdeeds.
The third advice: "and behave decently towards people." The first two pieces of advice are in relation to dealings with the Creator. However, the third is about dealings with the creatures; that you treat
them nicely for which you'll be parted at the back and not disparaged like being cheerful, truthful in speech, courteous in discourse among other virtuous characters.
There are numerous texts on the excellence of good character, such that the Prophet (ﷺ) said, "The most perfect of the believers in faith is the best of them in character."(1) In addition, he (ﷺ) informed that the most entitled and closest people to him (ﷺ) in position on the Day of Resurrection are the best of them in character.(2)
So, good character - besides being a virtuous demeanor in the society and making its bearer beloved to people - also brings about great rewards that the individual will obtain on the Day of Resurrection. Therefore, preserve these three pieces of advice from the Prophet (ﷺ): fear Allah wherever you are, follow up a misdeed with a good deed, it will expiate it; and behave decently towards people.
Allah alone grants success.