If your staking account status is "Inactive", you can withdraw your SOL back into your wallet.
- Click on your Solana token balance in your wallet
- Click the "Your Stake" row
- Choose the validator or staking account you wish to withdraw from
- Click the "..." icon in the top right
- Click "Withdraw SOL"
Make sure you have enough SOL for gas (0.05 is enough for many transactions) otherwise your transaction will fail.