Quote:
Scholars agree that there is nothing in Islamic law which forbids many types of fertility treatment, as long as the treatments do not go outside the bounds of the marriage relationship. If chosen, in vitro fertilization must be done with sperm and egg from a husband and wife, and the embryos transplanted into the wife's uterus. Assisted reproductive technologies which blur marital and parental ties are forbidden: such as donor eggs or sperm from outside the marriage relationship, surrogate motherhood, and in-vitro fertilization after a spouse's death or divorce of the married couple.
You can read about it more here...