Asalam e Alakum
I have a question and question is that i promised to my friend that i will done this work at the set date and i said in my heart if i fail to do that work so i will be a non muslim means i called my self as a non Muslim when fail to fulfill the promise and this thing just said in my heart but after 2 or 3 day i didn't fulfill the promise at the set date then when i revealed the secret about the promise and i told to my friend that i had fixed a condition for myself to force myself for fulfill the promise and condition was that if i fail and break the promise that i will be infidel i said just in my heart this thing .so now my faith is in danger? And now i am out from the circle of islam? And now i am infidel?
My friend scared me that it is chances that you has been out from the circle of islam .Now may be you are infidel (my friend told me why you said in your heart that i will be infidel if fail to fullfill the promise)
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 are still a Muslim, praise be to Allah, and you do not go out of the fold of Islam just because of the aforementioned whispers.
Therefore, repel these whispers and illusions and do not give in to them. Do not talk to yourself in this manner again because it is not appropriate for a Muslim to say this.
You should know that a person who says such a thing does not become a non-Muslim but he commits a very forbidden matter.
Allah Knows best.
You can search for fatwa through many choices