“I wanna say a proper ‘thank you’ to all the musicians over the years that’ve inspired me," the former One Direction singer said.