Waiver from the company before you go exit

Just want to clarify this. I filed for exit in my company and then they give it.. but they are telling to me that i am banned for 3 yrs if i will go for exit and they have papers that i need to sign before i leave.. is that legal?

New topic