Do not lay up for yourselves treasures on earth, where moth and rust destroy and where thieves break in and steal, but lay up for yourselves treasures in heaven, where neither moth nor rust destroys and where thieves do not break in and steal.
Matthew 6:19-20

Laying up treasures in heaven allows God's treasures to be given on earth. (Understand that God's treasures, even on earth, are not always material.) Focusing on earthly treasures pushes God's treasures away on earth.