A phone found after a night in the rain has had water in it for hours. Act carefully.
1. Don't switch it on or charge it.
2. Dry the outside, remove the SIM tray and case.
3. Take it to a technician quickly to open it, disconnect the battery and clean the board.
4. Expect corrosion: hours of water with the battery connected usually damages something.
5. If the data matters most, say so. The technician can focus on getting it working long enough to back up.
Even if it turns on, have it cleaned. Hidden corrosion usually causes failures later.