He made the call after picking up a knee injury.
The defending champion looked visibly in pain during his marathon five-set match against Argentina’s Francisco Cerundolo on Monday.
He says it was a difficult game to get through.
The withdrawal now means Italian Jannik Sinner is the new men’s world number one.