Megan Rapinoe will play her final game for the United States in a September 24 friendly against South Africa in Chicago, USA Soccer said on Tuesday.
The federation said Rapinoe will be honored before the match, the second of a two-game series, and won't play in the first game in Cincinnati on September 21.
Rapinoe, 38, announced before the recently concluded World Cup that she would retire when the National Women's Soccer League season ends in November.
The 11-year NWSL veteran is scheduled to play her final regular-season match for the OL Reign at Seattle's Lumen Field on October 6 against the Washington Spirit.
The 38-year-old will end her international career with 203 caps.
She has scored 63 goals.