William Gilbert
On the Magnet and Magnetic Bodies, and on That Great Magnet the Earth
First book on magnets and electricity
And already it recognized the Earth as a magnet, polarity, magnetic fields etc.
(:includeSite http://en.wikipedia.org/wiki/De_Magnete?printable=yes:)