concentrate the mind
To cause one to focus, typically on what is important in a particular situation. I didn't think I was capable of diffusing a bomb, but nothing concentrates the mind more than the threat of danger!
ˌconcentrate the ˈmind
make you think very clearly and seriously about something: Being informed that you are likely to lose your job unless you work harder concentrates the mind wonderfully.