NYC Income Tax

Question - I lived and worked in NYC for the first half of the year and moved to NJ mid-year. I exercised a large amount of stock options in the second half of the year (after I moved to NJ). Will I owe New York City Income taxes on these stock options? I'm hoping not as these options were exercised after I moved to NJ

 

PBS