We don't consider Allah to be all-good, but He is the source of all goodness. He is not omnibenevolent, but He is just and merciful. Allah describes Himself in the Quran with attributes such as the Benign (Al-Barr), the Merciful (Ar-Raheem), and the Pardoner (Al-Afuw), and at the same time, the Afflicter (Ad-Darr) and the Lord of Retribution (Al- Muntaqeem).
But, even though we believe in a god that is merciful and wrathful at the same time, it is stated in an authentic hadith that Allah's mercy is greater than his wrath: "When Allah decreed the Creation He pledged Himself by writing in His book which is laid down with Him: 'My mercy prevails over my wrath.'" [Hadith Qudsi]
There is also another hadith which says that if the kafirs (non-believers) knew how great Allah's mercy is, even they would not lose hope of Paradise.
And the moment a person converts to Islam sincerely, all his past sins will be erased.
But, even though we believe in a god that is merciful and wrathful at the same time, it is stated in an authentic hadith that Allah's mercy is greater than his wrath: "When Allah decreed the Creation He pledged Himself by writing in His book which is laid down with Him: 'My mercy prevails over my wrath.'" [Hadith Qudsi]
There is also another hadith which says that if the kafirs (non-believers) knew how great Allah's mercy is, even they would not lose hope of Paradise.
And the moment a person converts to Islam sincerely, all his past sins will be erased.