Assalamualaikum,
Brother, my question is that if a person unintentionally says something that is shirk i.e he commits shirk by mistake or due to error or carelessness will he become kaafir. If so, after he repents and comes back to Islam will all his good deeds be erased?