Four terms not to confuse
The match has started, then a player stops, most often because of an injury or illness. The opponent is declared the winner. The displayed score stops there, for example 6-3 2-1 ret.
The player withdraws before the start of the match. The opponent goes through to the next round without playing. No point is played, there is no score.
The umpire removes a player, for example after a ball hit in anger strikes someone, or after too many warnings. The match stops and the opponent wins. This is rare.
Rain, darkness or a technical problem stops the match. It resumes later, often the next day, at the exact score where it stopped.
There is also the lucky loser: when a player withdraws before the draw begins, their place is given to a player beaten in the final round of qualifying. The opponent therefore changes, sometimes a few hours before the match.