tempt fate
tempt fate/providence
1. to do something which involves a risk and may cause something unpleasant to happen.
I always feel it's tempting fate to leave the house without an umbrella.
2. to cause bad luck for yourself by talking too confidently about a situation.
It's probably tempting fate to say so, but I haven't had a cold all year.