Some people spend their whole lives, doing that. Part of the purpose of longer times of prayer isn't just to ask for things. It's to see what's going on. When we pray, God shows us the truth of things. And then God gives us the strength to deal with them.
Temptation tries to short-circuit that process.
The tempter, whether it's internal or external, the tempter tries to twist our understanding, and to mislead our action. Jesus was tempted, just the same as we are. Jesus showed us, in the desert, and in the press of daily life, how to resist temptation, how to wait through it, and how to listen to God.