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, sallallaahu ‘alayhi wa sallam, is His Slave and Messenger.
We have previously clarified that if trustworthy doctors decide that pregnancy may endanger a woman's life, then prevention of pregnancy becomes allowed; so kindly refer to the Fataawa 92361 and 83837.
It is worth mentioning here that it is not permissible to use something that can prevent pregnancy permanently; since the excuse may be removed and the woman may conceive again and thus increase Muslim offspring which is an intended purpose of Sharee’ah.
However, saying that Hajj will not be accepted after using means of family planning is incorrect and we do not know any scholar who said that.
Allaah Knows best.