The world No. 3 has played only seven tournaments in 2016, with his most recent appearance a semifinal defeat at Wimbledon this month.
"It is tough to miss the rest of the year," he said. "However, the silver lining is that this experience has made me realize how lucky I've been throughout my career with few injuries.