"What a wonderful journey it has been," Ba wrote on Twitter.
"Football has given me so many beautiful emotions."
He netted 29 goals in 57 games for the Magpies, earning a move to Chelsea in January 2013.
Need a VPN? Or seeking to switch? Then support Tribal Football by clicking here to sign up with our official partners NordVPN. Not only will you receive the best VPN experience, but also great discounts by signing up via Tribal Football. Thanks for your support!