The midfielder, 25, leaves as a free agent this week.