Out of state work

Ok, My question is If I live in Illinois and am contracted by a company based out of New York to do work in Pennsylvania (for example) Which state do I claim taxes for? The state that the company that paid me is based out of, or the state that I completed the work in?