The following query was put to the maraji`:
What should be the ruling regarding someone who wants to have a “test tube baby” or IVF?
Imam Muhammad Sa`id Ramadan Al-Bouti (d. 1434 AH), may Allah be pleased with him, answered in the following manner:
The Revealed Law has safe guards in place to protect human life and the judgement is that it is impermissible to result to what are known today as “test tube babies” due to the human lineage.
For a surety, if this door was to be opened and the safeguard removed, this would be the means to numerous other impermissible affair, the most dangerous and most severe being the pollution and admixture of human lineage. 
Imam Wahbah Az-Zuhayli, may Allah preserve him, answered the questioner:
As for IVF, then this is permitted just as has been confirmed at the National Fiqh Congress according to the understanding that this is only done between a man and his wife. It has to be stressed that one of the points given is that the sperm should not come from other than the married couple. Furthermore, the sperm should not be deposited or put in the womb of any woman besides the wife. 
 Ma` An-Nas: Mashurat wa Fatawa, vol.1, pp. 239-240
 Fatawa Ma`asarah, pp. 229-230