´It was narrated that Umm Hani' said:` "The Messenger of Allah(ﷺ) said: (About saying) La ilaha illah - no deed takes precedence over it and it does not leave any sin.'"
Brief Explanation
1؎: That is, when a disbeliever says «لا إله إلا الله» and becomes a Muslim, then all the sins from the time of disbelief are forgiven for him.