Al-Hasan and Ibn Sirin said: The profit is according to the condition that was agreed, and the loss is taken out of the capital.