City boss Peter Taylor told the club website: "I feel really sorry for him. He has been a superb professional during his time at the football club.
"Lee's a great lad, he's still a great player. We have a League Two budget and we could only take this deal so far."
Meanwhile, striker Louis Moult has returned to Stoke after his loan spell expired.
Source: BBC Sport