Know/learn/find something to your cost Verb + object/complement
To have lessons of life or realize something after an unpleasant experience has happened to you
Drinking too much alcohol is harmful to our health as my brother learned to his cost.
I knew to my cost that my classmate is a good liar.
The verb "know/learn/find" should be conjugated according to its tense.