The phrase "give it to someone" means to transfer possession of something to another person. In this context, the speaker prefers to transfer the money to someone else rather than keep it. Therefore, "to" is the correct preposition.
I don't want to keep this money, I prefer to give it to.