You can unstake your EGLD at any time.
The entire unstake process takes 10 days and is done in 2 steps.
Firstly, you need to initiate the unstake
10 days later, after the unstaking periods is over you will need to finalize the withdrawal.
After these 2 steps have been completed your funds become available in your wallet.
During the 10 days of unstaking, your EGLD is not eligible for any rewards.