It is possible to do good things in wrong ways. Drawing the attention of others brings praise from others but no reward from God. Our motives matter. The reward we find is that it is more blessed to give than receive. It is possible to be a hypocrite in our praying by trying to impress with our piety. God is not battered into doing what we want. God must be our focus.