Sayyiduna Ali (may Allah be pleased with him) said that whoever divides the profit bears no liability.