Please go through the 4 cases in which the sperm and the ovum of the wife are combined. Their Shariah ruling will be mentioned after that.
(1) The husband has enough potent sperm, but due to some reason, he is not able to perform intercourse. In this case, the sperm of the husband and the ovum of the wife are combined in the lab and later when the embryo forms, it is implanted in the womb of the wife.
(2) The husband has potent sperm and is able to perform intercourse. However for some reason, the sperm cannot find their way to the fallopian tube. Then IVF is used.
(3) If there is some problem with the fallopian tube of the wife like infection, shrinking, patency problems or the like and because of it the fertilized ovum cannot pass into the womb, then IVF is used.
(4) If there is a problem with the uterus of the wife, then IVF is used.