The short answer
It depends on your grant, and the details can be expensive, so read it before you resign. Typically you keep only what has vested, and unvested options are forfeited. For the vested ones you usually get a limited exercise window after you leave (often 90 days, though some companies offer longer), and if you do not exercise and pay the strike within it, they lapse. Exercising can also trigger tax (in India, perquisite tax on the gap between fair market value and strike), so leaving can mean paying real cash for shares that are still illiquid. Know your vested count, your window, and the tax before you decide, and ask about an extended window if the numbers are large.
A curated summary to orient you, not advice. The resources below are the real value.