ask for
ask for {v.}, {informal}
To make (something bad) likely to happen to you; bring (something bad) upon yourself.
Charles drives fast on worn-out tires; he is asking for trouble.
The workman lost his job, but he asked for it by coming to work drunk several times.
Categories:
Source: A Dictionary of American Idioms