It is permissible
to buy shares in the banks which do not deal in Riba. Profits earned from shareholdings in the bank and which are the result of dealings that do not involve anything Haram are Halal (Lawful). (Part No. 13; Page No. 508)
May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.