It seems that this is not kufr.

Did a person commit kufr if he, in a moment of frustration, is about to utter something that is kufr, but he immediately realised what he was about to say and immediately refrained from saying it? He didn’t utter it but it almost came out of his mouth.

Apostasy |