Q.Can A Garden That Was Flooded Due To A Sprinkler Being Left On Survive?
Sprinkler was accidentally left on for a couple days resulting in one end of the garden being about 6” under water. When it was discovered we bailed out the water within a matter of an hour or so by manually draining it by 5 gal bucket scooping! We have sweet corn that has just started to tassel, beets, tomato plants and some cucumbers and squash. What are the chances any of it will live? This small garden is my husband’s relaxing, feel-good, stress-relieving hobby. I’m just sick for him and hoping it can survive.

Certified GKH Gardening Expert
That is terrible! I would apply fungicides, or biofungicides to the soil just as a precaution. Flooding can cause major issues with infections, as roots remain suffocated in wet soil, so applying a fungicide as a preventative method can help keep plants from dying off.
Though there isn't much that you can do... this article may offer some more tips:
https://www.gardeningknowhow.com/plant-problems/environmental/flood-damage-garden.htm