Please see the instructions on how to file a nonresident income tax return. You'll have the opportunity to allocate the sale of the home to the nonresident state. Make sure you do the nonresident state return first.
See
How do I file a nonresident state return?