I am a resident Alien and have been working in the United States for the past 8 years on Work Permit(H1B Visa). In the middle, I also attended graduate school as a full time student on an F1 visa. My question is that if I lose my job and have to leave the country for good, can I claim my social security back? If yes how and what is the process of doing so. Thanks

