The following query was put to the marja`:
What is the ruling on putting one’s money in a bank in order for that wealth to bear interest and then in turn give that to the poor and near relatives?
The marja`, Imam `Abdur-Rahman ash-Shami, may Allah preserve him, gave the following answer:
It is not permissible to place money in these types of places with this intention. The reason for this is the statement of the Prophet, peace and blessings of Allah be upon him, “Allah is Pure and only accepts that which is pure.” This is collected by Imam Muslim in his Al-Jami` us-Sahih.
Taken form the website of the maraji`