LOS ANGELES (CNN) – Katharine McPhee and David Foster are headed to the altar. The former “American Idol” contestant and the Canadian musician confirmed their engagement on Tuesday.

Foster, 68, popped the question to McPhee, 34, while the two were vacationing in Italy, according to the former “Scorpion” star. “He did it at the top of this mountain in Anacapri,” McPhee wrote in a text exchange that she shared on her Instagram page. “Totally dark, only stars.”

David Foster & Katharine McPhee

(credit: John Sciulli/Getty Images for Perry Ellis)

This will be McPhee’s second marriage. Foster has been married four times before and has five children. His last marriage was to “Real Housewives of Beverly Hills” star Yolanda Hadid.

McPhee and Foster first crossed paths in 2006 when Foster served as a mentor during ‘Love Songs’ week in Season 5 of “American Idol,” on which McPhee was competing.

(© Copyright 2018 Cable News Network, Inc., a Time Warner Company. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)