Who first used a compass?

The Chinese appear to be the first to use magnetite or a lodestone in the first century. The first record of a mariners compass is attributed to Alexander Neckam in the U.K. in 1187.