speak too soon
US /spiːk tuː suːn/
UK /spiːk tuː suːn/

1.
to say something that turns out to be wrong very soon after you have said it
:
•
I thought I had finished all my work, but I guess I spoke too soon.
•
The baby finally fell asleep. Oh, wait, I spoke too soon, he's crying again.