Praise be to Allah.
We advise you not to sell them if you know that the people who are using them are either women who want to avoid getting pregnant if they commit zinaa (unlawful sexual relationships) or men who want to avoid having children, or men whose wives have got pregnant and they want to put an end to the pregnancy. All of these are haraam. If he has to study pharmacy, then let him study it, then when he wants to sell these things, let him tell the would-be purchasers that this is not permissible; it is not permissible to abort a pregnancy or to prevent pregnancy except in cases of necessity. Let him advise them, then whoever does not accept this advice, the sin will be on them. And if he can find a way to avoid selling these things, that will be better.