All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
All forms of commercial insurance contracts are forbidden as they involve risk, gambling, and eating up people's wealth unjustly. Therefore, it is forbidden to form such contracts if the employee has a say in this matter.
However, if the above company provides life insurance for all its employees without deducting any portion from their salaries, then an employee or his heirs are allowed to benefit from the insurance funds paid to them by the insurance company. And Allah The Almighty Knows Best.