I just spent ten minutes trying to dig up the precise episode on Memory alpha and came to naught, but I believe that it's established the Federation doesn't use money in that episode of TNG where they find a spaceship with people from the 21st century frozen in it and then unfreeze them.