The Messenger of Allah ﷺ mentioned the major sins, or he was asked about the major sins, and he said, "Associating partners with Allah, killing a soul, and disobedience to parents." Then he said, "Shall I not inform you of the greatest of the major sins?" He said, "False speech," or he said, "False testimony."Shuba said, "My strongest impression is that he said, 'False testimony.'"
ذكر رسول الله ﷺ الكبائر، أو سئل عن الكبائر فقال: الشرك بالله، وقتل النفس، وعقوق الوالدين، وقال: ألا أنبئكم بأكبر الكبائر؟ قال: قول الزور، أو قال: شهادة الزور قال شعبة: وأكثر ظني أنه قال: شهادة الزور.
Bukhari reported it in Adab (5977), and Muslim in Iman (88:144), both through Muhammad bin Jafar, who said, "Shubah narrated to us, Ubaydullah bin Abu Bakr narrated to me," he said, "I heard Anas bin Malik say," and he mentioned it.