You would only pay the state tax for 1099-R in the state you were a resident of when it was received. However, if you live in West Virginia, you will have to file a nonresident Maryland tax return and show zero income to get the withholding back.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"