[Machine] A man came to the Messenger of Allah ﷺ and asked him about the major sins. He replied, "It is to associate partners with Allah while He created you, and to kill your children out of fear that they will share your food, and to commit adultery with your neighbor's wife." Then he recited the verse: "And those who do not invoke with Allah another deity or kill the soul which Allah has forbidden [to be killed], except by right, and do not commit adultery. And whoever should do that will meet a penalty." [Quran 25:68]. They narrated this in the sahih from the hadith of Al-A'mash.
أَتَى رَجُلٌ رَسُولَ اللهِ ﷺ فَسَأَلَهُ عَنِ الْكَبَائِرِ فَقَالَ أَنْ تَدْعُوَ لِلَّهِ نِدًّا وَهُوَ خَلَقَكَ وَأَنْ تَقْتُلَ وَلَدَكَ خَشْيَةَ أَنْ يَطْعَمَ مَعَكَ وَأَنْ تُزَانِيَ حَلِيلَةَ جَارِكَ ثُمَّ قَرَأَ {وَالَّذِينَ لَا يَدْعُونَ مَعَ اللهِ إِلَهًا آخَرَ وَلَا يَقْتُلُونَ النَّفْسَ الَّتِي حَرَّمَ اللهُ إِلَّا بِالْحَقِّ وَلَا يَزْنُونَ وَمَنْ يَفْعَلْ ذَلِكَ يَلْقَ أَثَامًا} [الفرقان 68] أَخْرَجَاهُ فِي الصَّحِيحِ مِنْ حَدِيثِ الْأَعْمَشِ