How to Store Cut Melon for Later
Once melon is cut, cover and refrigerate it promptly. The storage rules for a whole melon on the counter do not carry over to exposed flesh. Choose refrigerated pre-cut fruit when shopping.

Clean the outside first
Wash the rind under running water and scrub firm melons with a clean produce brush before slicing. Use a clean knife and board. Even though the rind is discarded, a knife can transfer contamination from the outside to the flesh.
Cover and keep cold
Put pieces in a clean covered container and refrigerate. FDA recommends keeping the refrigerator at or below 40°F (4°C). Keep the container away from raw meat juices, and follow any shorter storage instructions on a purchased pre-cut product.
Serve small amounts at a time
Return the main container to the fridge and refill a small serving bowl as needed. FDA’s general limit for perishables at room temperature is 2 hours, or 1 hour above 90°F (32°C). Count cumulative time out of refrigeration, including transport and preparation.
Do not reset the clock by chilling
Putting fruit back in the refrigerator does not undo excessive warm exposure. Discard perishable food that exceeded the safe time limit, even if it looks normal. For outings, use an insulated cooler with adequate ice or cold packs rather than relying on shade.
Sources
University of Maryland Extension; FDA; FDA.