All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
The transaction that took place between these two men is a Mudhaarabah, and among the conditions of Mudhaarabah is that the amount of profit should be known, like a half, two-thirds, one-fourth and the like, because the contract is basically concluded on the profit, and since the profit is unknown, then this makes the contract void. For more benefit, please refer to Fatwa 94668.
Therefore, according to the view of the majority of the scholars this Mudhaarabah is void. In such a case, [which is when the Mudhaarabah is void], all the profit is for the owner of the capital money and the Mudhaararib [i.e. the one who manages the Mudhaarabah] is entitled to the wages of a person who does the same job like him or according to another opinion, he is entitled to a share from the profit equal to the share of that person.
However, if the owner of the capital money and the Mudhaararib agree after the end of the Mudhaarabah transaction on the division of the profit, then this is permissible as it is a permissible reconciliation.
Allaah Knows best.