They'll meet in the inaugural Greenbrier Champions Tennis Classic in White Sulphur Springs on Sept. 22.
Sampras says the chance to play McEnroe again was a deciding factor. McEnroe says he doesn't see Sampras often and enjoys the opportunity to catch up with him.
Both players were ranked No. 1 on the ATP World Tour, with Sampras dominating in the 1990s and McEnroe in the 1980s.
Greenbrier President Jeff Kmiec says the clay-court match fits the resort's vision of offering world-class entertainment. Tickets are $50.