There is a well known Medrash Rabbah that the Jews during the Plague of Blood sold water to the Egyptians for exorbitant amounts of money. The question is how was this allowed as we have a rule that we are not allowed to BENEFIT from Miracles selling the water would seem to be a physical enjoyment of the Miracle?
The profit was from the natural water that we sold them. The miracle was that their own water became blood. The miracle drove up the price of water from zero to something. The profit was an indirect result of the miracle.