Hello, You do not need to worry.
You should simply submit the letter which you have from the Bank confirming that your account balance has been over 3000 in the last 90 days.
If your friend put the money back into your account within 10 minutes as you say, you will be fine and if the issue ever comes up, you can explain what happened.
It will not be held against you.
May I help further?