Ruling on subscribing to the workers’ retirement fund
Question

                The wages of 8.67 days x 3% are deducted from my basic salary each month for the workers’ retirement fund. When I attended the Annual General Meeting to discuss the budget of this fund, I found out that the money collected is distributed among a number of banks and the fund benefits from depositing money in banks at an interest rate of 12.5%. We do not benefit from this money at all throughout our years of service except at the end of our service, when we can get 127 months of our last basic salary. Is the money that we get at the end of our service halaal or haraam? Please note that if we withdraw from the fund, that monthly amount is still deducted. What is the solution?.
Praise be to Allah.
      There is nothing wrong with the worker subscribing to a 
      retirement scheme or state insurance fund, if doing so is compulsory as is 
      the case in some countries, because the worker is excused for that and the 
      money is taken from him without his choice. Hence many scholars regard it 
      as permissible to make use of what comes from this scheme, and they 
      regarded the extra amount from the state as coming under the heading of 
      the state’s duty to take care of the weak and look after them. 

    But in the case of voluntary subscription, it is not 
    permissible to subscribe to this fund, because it is based on gambling and 
    uncertainty. The individual may take more than he paid or he may take less 
    than that, and this is gambling. Moreover, the money is deposited in 
    riba-based banks, as you stated, and it is well known that it is not 
    permissible to deposit money in riba-based banks with the aim of getting the 
    interest, because that is consuming riba and helping those who deal in 
    riba. 

    And Allah knows best.