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,
, is His slave and Messenger.
We have already issued Fatwa 237190 clarifying the prohibition of those contracts/transactions, citing the resolution of the Islamic Fiqh Council. Hence, you did well by refraining from investing in them.
Whoever repents from this, he is entitled to his capital money only. Therefore you are permitted to use the money you withdrew as Allaah says (what means): {But if you repent, you may have your capital sums – (thus) you do no wrong, nor are you wronged.} [Quran 2:279]
Allaah Knows best.