Ask for trouble verb informal
To behave or act in a manner that will very likely result in trouble, difficulty, or danger
Those kids were just asking for trouble when they broke my house's windows.
You shouldn't leave your children alone in the house like that or you’re asking for trouble.
Hey! Calm down! I know you're annoyed with your boss for making you work overtime so many times, but don't go asking for trouble!
Anybody who invites a complete stranger into their house is asking for trouble.
The verb "ask" should be conjugated according to its tense. This idiom is usually used in the past or present continuous tense.