Ayahs 27 and 28 of Surah Al-Ma’idah described the story of Cane and Able:
“When both of them offered a sacrifice, and it was accepted from one and not the other. One said: I will kill you, but the other said: God only accepts the sacrifice of the pious people. If you raise your hand to kill me, I will not raise mine to kill you because I fear God of all the worlds.” It is narrated that Prophet Adam (AS) ordered his sons to sacrifice sheep for the sake of God. Because Able was a shepherd and the owner of sheep, and Cane was a farmer; Able sacrificed one of his best sheep, and Cane allocated a part of his bad quality farming product for the sake of God. Eventually, the sacrifice of Able was accepted but Cane’s sacrifice was not accepted, and this is God words saying: The sacrifice surrounded by the fire is the one which was accepted by God. Then, Iblis told Cane: Abel’s sacrifice was accepted and yours was not, and if you leave him, a generation will come from him who will be proud of their grandfather, and will say: we are the children of the one whose sacrifice was accepted; so, kill him [1].
[1] Al-Kafi, Vol. 8, Page 113.
Source: en.shafaqna.com