If it is still night time when you arrive then you will pray Fajr (and all the prayers after it) at your destination when the time arises.
As far as Maghrib is concerned, if you already prayed when you left then no need to repeat, however it is recommended to read it again.