"When you are in distress, and all these things come upon you in the latter days, when you turn to the LORD your God and obey His voice (for the LORD your God is a merciful God), He will not forsake you nor destroy you, nor forget the covenant of your fathers which He swore to them." Deuteronomy 4.30-31
In every promise there is a condition for compliance. Sometimes, because we are more emotional, we let the voice of the heart speak louder and despair at the sight of problems.
God is the Same. Just as He was in the past, He is in the present and will be in the future, forever. When we turn to Him and heed His voice, we reason, and He sustains us.
“It shall come to pass that before they call, I will answer; and while they are still speaking, I will hear." Isaiah 65.24
The promises of God are clear, but subject to conditions. They are like an exchange...
If there is obedience, then, in return, there are blessings; if there is disobedience, then no deal.
In reality, this "exchange" is nothing more than an expression of faith and trust in Him.
"...if My people who are called by My name will humble themselves, and pray and seek My face, and turn from their wicked ways, then I will hear from heaven, and will forgive their sin and heal their land." 2 Chronicles 7.14
God's blessings come with one condition: conversion. Mankind must leave behind his evil ways. In other words, those who steal, no longer steal; those who are promiscuous, will no longer do so; those who lie, no longer lie; etc. You must immediately abandon sin.
To sum it all up, those who want the attention of the Spirit of God must obey His word.