What can i do if a car insurance company refunds your money?

What can i do if a car insurance company tells you they will refund your money when you get in a accident, and your car is the one who needs to be fixed?And you were covered by them at the time?