Final answer:
According to Hebrews 11:4, Abel offered to God a more excellent sacrifice than Cain and obtained witness that he was righteous.
Step-by-step explanation:
According to Hebrews 11:4, Abel offered to God a more excellent sacrifice than Cain through which he obtained witness that he was righteous. This is a reference to the story of Cain and Abel in the Hebrew Bible. Abel's sacrifice was accepted because he offered it with faith and obedience, while Cain's sacrifice was not accepted because it was not done with the same level of faith and righteousness.
God's acceptance of Abel's sacrifice serves as a witness to Abel's righteousness, confirming his devotion and obedience to God. It does not imply that Abel gained wealth and prosperity, became famous, or angered God. The focus of the passage is on Abel's faith and righteousness, not on material or worldly rewards.