Selling the bond before maturity depends on market availability, liquidity, and the selling price.
Steps
You might sell it for a higher or lower price than the purchase price.
If you anticipate needing your funds early, liquidity is more important than the advertised return.
The figures, fees and limits in this answer vary by bank and change over time — confirm them with your bank or the official source before acting.