I'm wondering what special thing did Abel do that permitted God to accept his offering but not accept Cain's. I tried to read this part of Genesis 4:2-8:
Now Abel kept flocks, and Cain worked the soil. 3 In the course of time Cain brought some of the fruits of the soil as an offering to the Lord. 4 And Abel also brought an offering—fat portions from some of the firstborn of his flock. The Lord looked with favor on Abel and his offering, 5 but on Cain and his offering he did not look with favor. So Cain was very angry, and his face was downcast.
6 Then the Lord said to Cain, “Why are you angry? Why is your face downcast? 7 If you do what is right, will you not be accepted? But if you do not do what is right, sin is crouching at your door; it desires to have you, but you must rule over it.”
8 Now Cain said to his brother Abel, “Let’s go out to the field.”[d] While they were in the field, Cain attacked his brother Abel and killed him.
But still I don't understand. If I analyse the situation, Cain gave from what he does as well as Abel.
This leads me to think that it is not enough to have the courage to give an offering but that there are other parameters applicable for this to be accepted. But what are they?
In today's world some give a share of their salary. Would there be people for whom God refuses their offerings? If so, what are the parameters?