Reference: Silsilah Kitaab ad-Da’wah (10), al-Fataawa – Volume 3, Page 200
Question: I had shares in a bank which deals with ribaa, and then I sold them and earnt a profit. And now, some time has passed and I do not know what to do with it (the profit). So what do you advise me with? And may Allaah reward you with good.
Response: In the Name of Allaah, and all Praise is for Allaah [alone]. The ribaa profit can be spent on good causes, whilst you [are entitled to] keep the initial amount [of the investment]. So you must spend this profit in assisting the mujaahidoon and rennovating toilet facilities, and donating to the poor and that which is similar to this.