Nadal won the thousandth match of his career