Aberdeen have confirmed that Niall McGinn will rejoin the club on a three-and-a-half-year contract.
The 30-year-old scored 68 goals in 223 appearances during his first spell at the club but left Pittodrie in the summer to join South Korean side Gwangju.
However, McGinn, who had also been wanted by Hearts and Hibernian, has agreed a deal to move back to his former club after ending a brief spell in Asia and will officially become a Dons player again on January 1.
Aberdeen boss Derek McInnes said: "Niall is a player I really enjoyed working with in the past so I was really keen to work with him again when the opportunity arose. I think he is a player who has always brought a high level of performance.
"Everyone from all the staff at the club, to his team-mates, to the supporters, we will all welcome him back and we are looking forward to Niall picking up where he left off.
"He has been right up there in terms of goals and assists over the past five years. If he can replicate what he has done for us in the past then we will all be very pleased. Hopefully he can help us maintain the standards we have set.
"Some players and clubs are a good fit for each other and I think that is certainly the case with Niall and Aberdeen.
"He has signed a long-term deal because he wants to settle down in Aberdeen. He wanted that longevity in his contract. We are going to enjoy working with Niall over the next few years."
McGinn originally joined Aberdeen from Celtic in 2012 and helped the side win the League Cup in 2014.