What text contains the first incontestable reference to the magnetic compass used specifically for seafaring navigation?

Answer

Zhu Yu’s Pingchow Table Talks

Zhu Yu explicitly wrote between 1111 and 1117 AD that ship pilots consulted the south-pointing needle when celestial sighting was obscured.

What text contains the first incontestable reference to the magnetic compass used specifically for seafaring navigation?
inventioninventorcompass