Some partners in a company agreed

Q: Most companies give their employees some privileges, such as (Part No. 14; Page No. 469) giving the employee the right to choose between having a flat to live in with his family or an allowance that equals the value of this flat. These companies forbid any other person from using the flat other than the employee himself. However, it has become a widespread practice among employees that they lease the flats for people who are not working for the company. What is the ruling on the money that is gained in this case? Is it Halal (Lawful) or Haram (prohibited)? We hope that Your Eminence would clarify this matter which has become a widespread evil. Please keep in mind that this deed on the part of the employees is in contradiction with the regulations of the company and is punishable.

A: If the company system stipulates that only the employee is entitled to lodging that is provided by the company, then he is not permitted to rent it to someone else, because this contradicts the condition that was established between the company and its employees. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.