The You'll Think of Me singer brought his Ripcord tour to Albuquerque, New Mexico, where Miles had been enjoying the gig as a fan. But in the middle of the concert, Keith invited the actor to join him on stage to perform a duet of The Temptations' 1965 classic, My Girl, much to the delight of the audience.

In footage later posted online by both stars, the two playfully sang the hit as Miles changed the lyrics to, "What can make me feel this way? Keith Urban!", and Keith responded by singing, "Talking about Miles Teller."

In his Instagram post, the country star added the caption, "Albuquerque!!! We had an AWESOME night tonight. Huge shout out to Miles Teller for getting up on stage and singing tonight! It was very cool!!!"

The Whiplash star shared the same video on Twitter, adding, "Thanks @KeithUrban for the subtle encouragement haha."

Incidentally, Miles' model girlfriend Keleigh Sperry may have hinted at the surprise duet on Instagram a week prior to the appearance, posting a video of Miles serenading her with My Girl as he played an electric guitar.

Miles, who shocked fans recently by debuting his platinum blonde locks, has been in New Mexico filming Granite Mountain, based on the true story of a 20-member crew who fought the deadliest wildfire in Arizona's history in 2013. After being trapped on a mountainside,19 men died in the tragedy.

In addition to Miles, Jeff Bridges, Josh Brolin, Taylor Kitsch, Jennifer Connelly and Andie MCDowell all star in the film. Directed by TRON: Legacy filmmaker Joseph Konsinski, Granite Mountain is slated to hit cinemas in September, 2017.