A man swearing by divorce that the writing is his, then recognizing that it is not

Q: I have a notebook in which a poem is written. Someone opened it and said: This is not yours. I said: "My wife will be divorced once if this is not my writing". I did not recognize that it was not mine because there is another notebook. I thought that he was talking about my writing and I got the whole matter wrong, so could you kindly advise? Will my wife be divorced bearing in mind that this is my first time to do this? It is worth mentioning that I have two children from this wife. Please enlighten me, and may Allah protect you.

A: If the reality is as you mentioned, no divorce will become effective because what counts is what you believed at the time. If your belief contradicts with the reality, this will have no effect. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.