Okay,
Firstly. Don't panic. If you feel you are starting to. Sit down. Take a deep breath, count to 10 and let it out slowly. Then focus on breathing only until you calm down. Any response made in a panic is likely to be less than ideal so you will be in a better place if you are calm when dealing with this.
Secondly, it is a little difficult to read your post - it is written almost as a stream of consciousness so I am not quite sure what is going on. I think a clear timeline might help. Is the following correct?
1) You try to lodge €x to your bank account
2) The teller? wrote an incorrect amount on the slip - 10 * €x
3) This was applied to your account and your balance when you checked it reflected that amount
4) You spoke to your husband and he said that he was being paid €3000 and would lodge it to your account
5) You didn't inform the bank of the error or attempt to rectify it
6) You decided to withdraw €3000 from the account in anticipation of your husband lodging money
7) The bank noticed the original error and rectified it? (query - just to confirm, did they amend your balance by removing 9 * €x?)
8) Your account is now overdrawn
9) Your husband is still waiting on payment.
Assuming the above...
You will very likely get notification that your account is overdrawn. I would guess it would be safe to say they may be less than happy that you took advantage of their mistake. That isn't unreasonable, the best thing you can do is for your husband to chase the delayed payment.