A:
This is not permissible. However, what is permissible is
to allocate the worker a known portion of the profit, such as a half or one third, etc. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.