McIlroy joined the entertainer at the Pro-Am Omega European Masters tournament at Crans-sur-Sierre Golf Club in Crans-Montana, Switzerland.
The No. 2 golfer in the world stood in the sand and lined up the chip while talking Timberlake through the shot. He showed Timberlake the proper stance throughout the swing before making contact and nearly hitting the ball into the hole.
McIlroy is coming off winning $15 million last week as the FedExCup champion. He teed off Thursday for round one of the 2019 Omega European Masters.
Timberlake is also an avid golfer. He competes annually in Lake Tahoe's celebrity golf tournament, the America Century Championship.