In such a scenario, Investors holding stocks that are deemed Shariah non-compliant should consider selling them immediately at the prevailing market price. Immediate purification of all capital gains derived from such investments is necessary, considering the same as impure income, along with dividends and any other proceeds resulting from corporate actions. This purification process ensures adherence to Shariah principles and maintains the integrity of one's financial dealings in accordance with Islamic law.