And they shall be my people, and I will be their God: And I will give them one heart, and one way, that they may fear me for ever, for the good of them, and of their children after them: And I will make an everlasting covenant with them, that I will not turn away from them, to do them good; but I will put my fear in their hearts, that they shall not depart from me. Yea, I will rejoice over them to do them good, and I will plant them in this land assuredly with my whole heart and with my whole soul.
Jeremiah 32:38-41 (KJV)
God shapes the hearts of men to worship Him and Him alone. Those who worship Him have His promise of peace and security and to work things for their good.