It is the customer (Rabbu Al-Mal,) providing funds through one of the accounts with the bank (Saving, Investment Deposit Acconut, Notice) and then the bank (Mudarib) investing these funds in the bank’s investment pool, provided that the profits are distributed according to what was agreed upon, and that the owner of the money bears the losses.