When it comes to the First Deposit Bonus offer, only settled bets will count toward the wagering requirements of the offer.
Cashing out a bet, although is a strategic decision you may profit from, will not count towards the wagering of the First Deposit Bonus.
You can check the Terms of Service for more information.