it is unlawful to deposit money in banks to generate interest.
it is not permissible for a person to hold shares in companies that deposit their surplus money (Part No. 13; Page No. 408) in banks to generate interest, if the person is aware of this.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.