The Brazilian midfielder will leave the club in the summer after nine seasons