Hadithcore
Al-Adab Al-Mufrad, 474

'Abdullah ibn 'Amr said, "A guest stayed among the tribe of Israel and there was a dog in the house. They said, 'Dog, do not bark at our guest. The puppies were suckling from it. They mentioned it to one of their Prophets who said, 'This is like a community which will come after you and whose fools will overcome its men of knowledge."

حَدَّثَنَا قُتَيْبَةُ، قَالَ‏:‏ حَدَّثَنَا جَرِيرٌ، عَنْ عَطَاءٍ، عَنْ أَبِيهِ، عَنْ عَبْدِ اللهِ بْنِ عَمْرٍو قَالَ‏:‏ نَزَلَ ضَيْفٌ فِي بَنِي إِسْرَائِيلَ، وَفِي الدَّارِ كَلْبَةٌ لَهُمْ، فَقَالُوا‏:‏ يَا كَلْبَةُ، لاَ تَنْبَحِي عَلَى ضَيْفِنَا فَصِحْنَ الْجِرَاءُ فِي بَطْنِهَا، فَذَكَرُوا لِنَبِيٍّ لَهُمْ فَقَالَ‏:‏ إِنَّ مَثَلَ هَذَا كَمَثَلِ أُمَّةٍ تَكُونُ بَعْدَكُمْ، يَغْلِبُ سُفَهَاؤُهَا عُلَمَاءَهَا‏.‏

References2 variants
In-Book Reference
Book 26, Hadith 13
English Reference
Book 26, Hadith 474