Jesus had a spiritual view on prayer, fasting, and giving in the Sermon on the Mount. The subject of giving is approached in the same way as prayer and fasting, in that Jesus told us to do it in secret, not to be seen of men. If you pray, fast or give to be seen of men, you have your reward when they see it.
Jesus told us to give and not let the left hand see what the right hand is doing. In other words, if you do your best to keep it secret from yourself, no one else can see how much you give.
In Jesus' day, the Pharisees would sound a trumpet before they gave their offering into the temple. They wanted everyone to stop and see how much they gave. It was important to them to hear people "ooh" and "aah" over the size of their gift. The gift was big but their heart was not right with the Lord. Like the widow who only could afford to give one mite, her offering was larger than the Pharisees because she gave out of love to the Lord and care for God's house.
Giving so only God can see it, is called giving "in secret." Jesus told us if we did give in secret, God would reward us openly. In other words, when we give money with the right attitude to the Lord, God will see to it that money comes back into our natural life. Man may look at the outward appearance, the amount given, but God looks at the heart, the motive behind the giving.