Dear Student,
Electronic configuration of Gd = [Xe] 4f 7 5d1 6s2
In Gd, one electron instead goes to 5d instead of 4f. This is because 4f and 5d orbital in Gd is about the same energy level and Gd atom has a tendency to retain the configuration with a half-filled 4f level which is more stable.