In Psalm 37 it is written out how to gain the desires of your heart, promised from God.
Trust in the Lord, and do good;
Dwell in the land, and feed on His faithfulness.
4 Delight yourself also in the Lord,
And He shall give you the desires of your heart.
5 Commit[a] your way to the Lord,
Trust also in Him,
And He shall bring it to pass.
6 He shall bring forth your righteousness as the light,
And your justice as the noonday.
7 Rest in the Lord, and wait patiently for Him;
Do not fret because of him who prospers in his way,
Because of the man who brings wicked schemes to pass.
8 Cease from anger, and forsake wrath;
Do not fret—it only causes harm.