That sounds like bad financial advice, and that you’d be be better to accept it and put it in savings for however many months. If you don’t stay the required amount of time, return the money. If you do, ta-da, it’s yours.
Ask your tax person first, of course.