All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
It is well-known that the Khawaarij declared ‘Ali to be a disbeliever, because of him appointing Abu Moosa Al-Ash’ari and ‘Amr Ibn Al-‘Aas to judge between him and Mu’aawiyah all.
As regards him saying to them what you mentioned in the question, then this is a matter that we have not come across [in the references that we have at hand].
The scholars stated that if one says the word of Kufr [disbelief] deliberately while knowing that it is a word of Kufr, he becomes a Kaafir [disbeliever]. But whoever says: “He is a Kaafir” (referring to himself) in a sarcastic way while denouncing it, then he does not become a Kaafir because he is actually denying being so.
In any case, a Muslim should avoid delusive terms especially those related to Kufr as someone may hear him while not knowing his objective in saying it, and so he may think evil of him and thus he might be harmed because of this.
Allaah Knows best.