@paok1970,
Both mean the exact same thing. Both are correct.
The "to" is implied and if the sentence#1 is diagramed (parsed) the to would be written (to).
So that begs the question "why are you asking such elementary questions about English?"
Can you tell us a little about yourself, paok?