There are five keys to answered prayer in Luke 11:5-13
1. We need to seek
2. God always gives Holy Spirit answers to those who ask
3. Ask the right questions and change the question if necessary
4. Persist for understanding (seek the shepherding of the Strong One)
5. Timing is everything
Habakkuk's conversation with God regarding what is to happen to Judah is covered in Chapters 1 and 2 and God gives the prophet the revelation about what will happen to the Babylonians so he can be comforted about the coming events.