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, sallallahu ‘alayhi wa sallam, is His slave and Messenger.
Divorce is permissible if there is a need for it; otherwise, it is disliked (when there is no need for it). The husband should not divorce his wife merely because he doubts her fertility! We advise your husband not to divorce you and to live with you in kindness, as enjoined, and to refrain from accusing you of being dishonest as long as it is not established that your condition leads to absolute infertility. Talk to your husband gently and remind him of the divine command in the Quran: {And live with them in kindness. For if you dislike them - perhaps you dislike a thing and Allah makes therein much good.} [Quran 4:19] Remind him also of the words of the Prophet, sallallahu ‘alayhi wa sallam: “A believing man should not hate a believing woman; if he dislikes one of her characteristics, he will be pleased with another.” [Muslim]
Allah knows best.