Photo: Instagram

Ed Sheeran was recruited by Hilary Duff to help write and record the lead single for her 1st studio album in 7 years!

Due to their hectic lives they actually made it in the middle of the night.

Ed told us: "The only time I was available was 1 o'clock in the morning. She was a trooper. She came in and vocaled it. I'm very happy with the results, I hope she is too."

Ed says he hasn’t heard any of the other songs that Hilary’s been working on, but he’s very proud of their track.

Ed’s album "x" is on iTunes now.