With
      his shares they bought shares in a ribaa-based bank
Question

                I had shares
      in a company, which went bankrupt 25 years ago. There were people who were
      in charge of the company, who used the money that was left over to buy
      shares in a ribaa-based bank 25 years ago, for 1000 riyaals per share. Now
      the value of each share is thirty thousand and I need this money. Is it
      permissible for me to take the current value of the shares? Please note
      that their purchase of shares in this bank was not known to us all this
      time.
Praise be to Allah.Take
      the whole amount, capital and profit, then keep the capital, because that
      is yours, and give the profit in charity, because it is ribaa. Allaah will
      make you independent by His bounty and will compensate you with something
      better, and He will help you to meet your need.
Whoever fears Allaah and
      keeps his duty to Him, He will make a way for him to get out (from every
      difficulty). And He will provide him from (sources) he never could
      imagine. And whosoever puts his trust in Allaah, then He will suffice him
      (cf. Al-Talaaq 65:2-3 – interpretation of the meaning).
      
And Allaah is the Source of
      strength. May Allaah bless our Prophet Muhammad and his family and
      companions, and grant them peace.