a heads up
Getting a clue before something bad happens, like a warning that’s not just a whisper.
She gave me a heads up before the boss yelled at me, and I still got yelled at.
He said, 'I got a heads up, you're gonna get yelled at again.' And he was right.
My friend gave me a heads up before the math test, and I still cried.