I did recently hear that you should drink some water just before bed so as not to dehydrate during the night.
That’s probably true. You’ll be waking up in the middle of the night by the urge to get rid of that bedtime water you drank and while you’re up, hey, get a drink!
Also you can keep some water beside your bed, in case you need some in the middle of the night.
Water helps your system clean itself as it goes through the system.
It dilutes the blood stream and gives the liver and kidneys a chance to clean the blood stream.
Caffeine(a part of coffee and soft drinks) drinks and beer do no such thing.
If you get too dehydrated the system gets uncomfortable
and starts drawing water from the sacs around the nerves and other locations.
Any “doctor” or “scientist” who says water is equal to caffeine drinks and beer is a fraud.