Sahih Muslim 4409
The Book of Legal Punishments
حَدَّثَنَا عَمْرٌو النَّاقِدُ، وَإِسْحَاقُ بْنُ إِبْرَاهِيمَ، وَعَلِيُّ بْنُ خَشْرَمٍ، كُلُّهُمْ عَنْ عِيسَى، بْنِ يُونُسَ عَنِ الأَعْمَشِ، بِهَذَا الإِسْنَادِ . مِثْلَهُ غَيْرَ أَنَّهُ يَقُولُ " إِنْ سَرَقَ حَبْلاً وَإِنْ سَرَقَ بَيْضَةً " .
This hadith is narrated on the authority of A'mash with the same chain of transmitters with a slight variation of words
Text from the public-domain hadith-api dataset. Numbering follows that dataset and can differ by a few from some printed editions — check the wording, not only the number.