The second sentence is correct. One usually gives something to someone.
*The new student gave a rose to John.
It is also possible to give someone something. In this case, “to” is not used. You do not “give to someone”.
*Please give the architect these diagrams.