A Muslim is not perfect, in the sense that his faith raises and falls, depending on the many obstacle he faces as well as actions he/she takes. Make sure to have a positive environment around you as well as people. Sins are inescapable, and we are wired and bound to commit them. This does not make us bad nor evil people. The best of sinners is he who repents as fast after sinning.
Sins Are Erased By Praying For Forgiveness And Repenting
Abu Huraira reported Allah’s Messenger (ﷺ) having said:By Him in Whose Hand is my life, if you were not to commit sin, Allah would sweep you out of existence and He would replace (you by) those people who would commit sin and seek forgiveness from Allah, and He would have pardoned them. (Sahih muslim)
Forgiveness from Allah
Narrated Abu Huraira:
I heard Allah’s Messenger (ﷺ) saying. “All the sins of my followers will be forgiven except those of the Mujahirin (those who commit a sin openly or disclose their sins to the people). An example of such disclosure is that a person commits a sin at night and though Allah screens it from the public, then he comes in the morning, and says, ‘O so-and-so, I did such-and-such (evil) deed yesterday,’ though he spent his night screened by his Lord (none knowing about his sin) and in the morning he removes Allah’s screen from himself.” (Sahih Al Bukbari)
On the authority of Anas (may Allah be pleased with him), who said:I heard the Messenger of Allah (ﷺ) say: Allah the Almighty said: O son of Adam, so long as you call upon Me and ask of Me, I shall forgive you for what you have done, and I shall not mind. O son of Adam, were your sins to reach the clouds of the sky and were you then to ask forgiveness of Me, I would forgive you. O son of Adam, were you to come to Me with sins nearly as great as the earth and were you then to face Me, ascribing no partner to Me, I would bring you forgiveness nearly as great as it. It was related by at-Tirmidhi (also by Ahmad ibn Hanbal). Its chain of authorities is sound. (Hadith Qudsi)
Narrated Shaddad bin Aus:
The Prophet (ﷺ) said “The most superior way of asking for forgiveness from Allah is: ‘Allahumma anta Rabbi la ilaha illa anta, Khalaqtani wa ana `Abduka, wa ana `ala `ahdika wa wa`dika mastata`tu, A`udhu bika min Sharri ma sana`tu, abu’u Laka bini`matika `alaiya, wa abu’u laka bidhanbi faghfir lee fa innahu la yaghfiru adhdhunuba illa anta.” The Prophet (ﷺ) added. “If somebody recites it during the day with firm faith in it, and dies on the same day before the evening, he will be from the people of Paradise; and if somebody recites it at night with firm faith in it, and dies before the morning, he will be from the people of Paradise.” (Sahih Al Bukhari)
Tariq bin Ashyam (May Allah be pleased with him) reported:Whenever a man entered the fold of Islam, the Prophet (ﷺ) would show him how to perform Salat and then direct him to supplicate: “Allahumm-aghfir li, warhamni, wa-hdini, wa ‘afini, warzuqni (O Allah! Forgive me, have mercy on me, guide me, guard me against harm and provide me with sustenance and salvation).”‘
[Muslim].
Thauban (May Allah be pleased with him) reported:Whenever the Messenger of Allah (ﷺ) finished his Salat (prayer), he would beg forgiveness three times [by saying, ‘Astaghfirullah’ (3 times)] and then he would say: “Allahumma Antas-Salamu, wa minkas-Salamu, tabarakta ya Dhal-Jalali wal-Ikram. (O Allah! You are the Bestower of security and security comes from You; Blessed are You. O Possessor of glory and honour).” Imam Al-Auza’i (one of the subnarrators) of this Hadith was asked: “How forgiveness should be sought?” He replied: “I say: Astaghfirullah, Astaghfirullah (I seek forgiveness from Allah. I seek forgiveness from Allah).”
[Muslim].