Cock mout kill cock

Definition

To disclosure too much information to one's own detriment. Also, to pronounce a bad omen or wish on someone only for the same thing to happen to you.