Sahih Muslim , Book 6, Hadith 312 (In-Book) ⓘ
This hadith has been transmitted by Qatada with the same chain of transmitters. But Shu'ba (one of the narrators) said: At the end of Surah al-Kahf, but Hammam said: At the beginning of Surah al-Kahf.
وَحَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، وَابْنُ، بَشَّارٍ قَالاَ حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ، حَدَّثَنَا شُعْبَةُ، ح وَحَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ، حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ، حَدَّثَنَا هَمَّامٌ، جَمِيعًا عَنْ قَتَادَةَ، بِهَذَا الإِسْنَادِ قَالَ شُعْبَةُ مِنْ آخِرِ الْكَهْفِ . وَقَالَ هَمَّامٌ مِنْ أَوَّلِ الْكَهْفِ كَمَا قَالَ هِشَامٌ.
also referenced under: Hadith 809 (Reference) & Book 4, Hadith 1767 (USC-MSA)