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.
This sale is not permissible because it involves an uncertainty(Jahaalah) and risk (Gharar). The closest kind of sale to it is the Salam sale, which is: "a contract according to which the price of a clearly defined item is paid in advance at the time of concluding the contract, and the item is delivered at a later time." It is an exception from the general prohibition against selling something that is not existent or something that one does not possess, based on people's need for such a contract. The evidence for its permissibility is that Ibn ‘Abbaas,
, narrated that the Prophet,
, said: "Whoever makes a Salam sale, he must do that with a known specified measure or a known specified weight and to a known specified period." [Al-Bukhari and Muslim]
Among the most important conditions is that the capital is delivered to the vendor at the time of contract and that it is possible to determine the object of sale with a description that distinguishes it from other kinds in such a way that there is no risk involved, and that its species, type, amount and description are known to the contracting parties.
For more benefit, please refer to Fataawa 11368 and 27508.
The above conditions are not fulfilled in the sale mentioned in the question. The kind of meals and their amounts are not known to the buyer, so such a sale is not valid because it involves risk, which is forbidden. According to one Hadeeth: "The Prophet,
, forbade the sale involving risk." [Muslim]
We have not found any statements of the scholars who consider this sale to be permissible.
Allaah Knows best.