كتاب الفتن وأشراط الساعة
54
The Book of Tribulations and Portents of the Last Hour
(24)
Chapter: Al-Jassasah
(24)
باب ‏{‏ قِصَّةِ الْجَسَّاسَةِ ‏}‏

Tamim Dari came to Allah's Messenger (ﷺ) and informed Allah's Messenger (ﷺ) that he sailed in an ocean and his ship lost direction and thus landed at an island. They moved about in that land in search of water. There they saw a person who had been pulling his hair. The rest of the hadith is the same. And he (Dajjal) said:

If I were to be permitted to set out I would have covered all the lands except Taiba. Then Allah's Messenger (ﷺ) brought (Tamim Dari) before the public and he narrated to them and said: That is Taiba and that is the Dajjal.
وَحَدَّثَنَا الْحَسَنُ بْنُ عَلِيٍّ الْحُلْوَانِيُّ، وَأَحْمَدُ بْنُ عُثْمَانَ النَّوْفَلِيُّ، قَالاَ حَدَّثَنَا وَهْبُ، بْنُ جَرِيرٍ حَدَّثَنَا أَبِي قَالَ، سَمِعْتُ غَيْلاَنَ بْنَ جَرِيرٍ، يُحَدِّثُ عَنِ الشَّعْبِيِّ، عَنْ فَاطِمَةَ بِنْتِ، قَيْسٍ قَالَتْ قَدِمَ عَلَى رَسُولِ اللَّهِ صلى الله عليه وسلم تَمِيمٌ الدَّارِيُّ فَأَخْبَرَ رَسُولَ اللَّهِ صلى الله عليه وسلم أَنَّهُ رَكِبَ الْبَحْرَ فَتَاهَتْ بِهِ سَفِينَتُهُ فَسَقَطَ إِلَى جَزِيرَةٍ فَخَرَجَ إِلَيْهَا يَلْتَمِسُ الْمَاءَ فَلَقِيَ إِنْسَانًا يَجُرُّ شَعَرَهُ ‏.‏ وَاقْتَصَّ الْحَدِيثَ وَقَالَ فِيهِ ثُمَّ قَالَ أَمَا إِنَّهُ لَوْ قَدْ أُذِنَ لِي فِي الْخُرُوجِ قَدْ وَطِئْتُ الْبِلاَدَ كُلَّهَا غَيْرَ طَيْبَةَ ‏.‏ فَأَخْرَجَهُ رَسُولُ اللَّهِ صلى الله عليه وسلم إِلَى النَّاسِ فَحَدَّثَهُمْ قَالَ ‏ "‏ هَذِهِ طَيْبَةُ وَذَاكَ الدَّجَّالُ ‏"‏ ‏.‏
Reference : Sahih Muslim 2942 c
In-book reference : Book 54, Hadith 151
USC-MSA web (English) reference : Book 41, Hadith 7030
  (deprecated numbering scheme)