Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
abudawud:4371[Chain 1] Muḥammad b. Kathīr [Chain 2] Mūsá b. Ismāʿīl > Hammām > Qatādah > Muḥammad b. Sīrīn

This happened before the prescribed punishments(hudud) were revealed, meaning the tradition of Anas.  

أبو داود:٤٣٧١حَدَّثَنَا مُحَمَّدُ بْنُ كَثِيرٍ قَالَ أَخْبَرَنَا ح وَحَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ حَدَّثَنَا هَمَّامٌ عَنْ قَتَادَةَ عَنْ مُحَمَّدِ بْنِ سِيرِينَ قَالَ كَانَ هَذَا قَبْلَ

أَنْ تَنْزِلَ الْحُدُودُ يَعْنِي حَدِيثَ أَنَسٍ