Tax Law, § 632(b)(2)
Example:
A, a resident of New Jersey, owns 100 percent of the stock of X Corporation, which operates a store in New York State. In 1980, the corporation pays A a salary of $20,000, all of which was earned in New York State, and a dividend of $2,000. A's income from New York State sources is his salary of $20,000, since the dividend is not income derived from New York State sources and thus not taxable for New York State personal income tax purposes.
N.Y. Comp. Codes R. & Regs. Tit. 20 § 132.5