This can be what is known as a shadow transfer.
The amount may show as gone from your account temporarily but when the transaction fails it will return to your current balance.
The time this takes depends on your bank's procedures but will reappear back into your account. Please be aware this could take up to a week.