Earlier quoted context omitted.
Matthew 6, 1-4 (NIV): 1 “Be careful not to practice your righteousness in front of others to be seen by them. If you do, you will have no reward from your Father in heaven. 2 “So when you give to the needy, do not announce it with trumpets, as the hypocrites do in the synagogues and on the streets, to be honored by others. Truly I tell you, they have received their reward in full. 3 But when you give to the needy, do…
It's kind of sad how it's framed in those passages - Give in secret, or God will notice and hold back some of those heavenly rewards. As if the whole thing is just a karmic ponzi scheme.
A gift given in secret is seeking the rewards truly worth having: the praise that comes from God. Those who seek that find it, because they loved what was truly worthy of love. But gifts given for others to see are seeking a reward on earth, not heaven—and that’s what they get. Either way, they’re not penalized if, say, the word gets out against their wishes. That’s not the point: God knows and judges the heart and rewards them based on what they were actually seeking.
So seeking rewards is not only categorically OK, it’s actually encouraged, but with the caveat that the seeker set their heart on what is eternally worthy of their love and desire.