I am very worried and need Islamic help. today my brother made a joke that he was dying, then he said "what if I was really dying? you wouldn't help?" as a joke, I then said "what do you want me to do? do you want me to try fight malik al mawt?" as a joke, at that moment I realised what I said was wrong but just now I am realising I committed a huge sin. now I am worried, did this joke take me out of Islam? are all my past good deeds wiped away? I've really been trying to become a better Muslim by I keep messing up. am I a kaffir now? I am feeling really helpless, I've repented and retook my shahada just in case but I need to know if all my good deeds are gone and all the duaa I make will Allah reject it now? Please answer, I am really really worried.
All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
You should avoid and repel these whispers and not pay any attention to them.
There is no sin at all in the statement that you uttered, Allah willing.
That is because you said it as a matter of disapproval and to clarify that no one can ward off death when it comes.
Therefore, praise be to Allah, you are a Muslim, and you did not go out of the fold of Islam because of what you mentioned.
Your supplication as well as all your other acts of worship are acceptable and you will be rewarded for them all, Allah willing.
Allah knows best.
You can search for fatwa through many choices