All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
It is permissible for a person who committed Zina (fornication or adultery) with a woman to marry her provided that they both have repented to Allaah, and provided that this marriage takes place after Istibra’a, i.e. after she gives birth if she is pregnant or observes a waiting period of three menses according to one view of the scholars, or one menses according to another view, as clarified in Fatwa 117411.
As regards the statement that she has to stay in her home for four months without seeing her Mahaarim (male unmarriageable relatives), then this statement has no foundation in Islam. Rather, this is speaking on behalf of Allaah without knowledge.
Allaah Knows best.