hello
this is an answer from the quran with an explanation from tafsir ibn Katir
"(133. Or were you witnesses when death approached Ya`qub (Jacob) When he said unto his sons, "What will you worship after me'' They said, "We shall worship your AIlah (God ـ Allah) the Ilah of your fathers, Ibrahim (Abraham), Isma`il (Ishmael), Ishaq (Isaac), One Ilah, and to Him we submit (in Islam)).'' (134. That was a nation who has passed away. They shall receive the reward of what they earned and you of what you earn. And you will not be asked of what they used to do.)"
Surah The Cow (al-Baqqara) N°2 verses n° 133-134
Its explanation :
This Ayah contains Allah's criticism of the Arab pagans among the offspring of Isma`il as well as the disbelievers among the Children of Israel Jacob the son of Isaac, the son of Ibrahim. When death came to Jacob, he advised his children to worship Allah alone without partners. He said to them,
("What will you worship after me'' They said, "We shall worship your Ilah (God ـ Allah) the Ilah of your fathers, Ibrahim, Isma`il, Ishaq,'')
Mentioning Isma`il here is a figure of speech, because Isma`il is Jacob's uncle. An-Nahas said that the Arabs call the uncle a father, as Al-Qurtubi mentioned).
This Ayah is used as evidence that the grandfather is called a father and inherits, rather than the brothers (i.e. when his son dies), as Abu Bakr asserted, according to Al-Bukhari who narrated Abu Bakr's statement from Ibn `Abbas and Ibn Az-Zubayr. Al-Bukhari then commented that there are no opposing opinions regarding this subject. This is also the opinion of `A'ishah the Mother of the believers, Al-Hasan Al-Basri, Tawus and `Ata', Malik, Ash-Shaf`i and Ahmad said that the inheritance is divided between the grandfather and the brothers. It was reported that this was also the opinion of `Umar, `Uthman, `Ali, bin Mas`ud, Zayd bin Thabit and several scholars among the Salaf and later generations.
The statement,
(One Ilah (God)) means, "We single Him out in divinity and do not associate anything or anyone with Him.''
(And to Him we submit), in obedience meaning, obedient and submissiveness. Similarly, Allah said
(While to Him submitted all creatures in the heavens and the earth, willingly or unwillingly. And to Him shall they all be returned) (3:83).
Indeed, Islam is the religion of all the Prophets, even if their rei﴾spective laws differed. Allah said,
(And We did not send any Messenger before you (O Muhammad ) ﴿but We revealed to him (saying): La ilaha illa Ana ﴿none has the right to be worshipped but I (Allah)﴾, so worship Me (alone and none else)) (21:25).
There are many other Ayat - and Hadiths - on this subject. For instance, the Prophet said,
(We, the Prophets, are brothers with different mothers, but the same religion.)
Allah said,
(That was a nation who has passed away) meaning, existed before your time,
(They shall receive the reward of what they earned and you of what you earn).
This Ayah proclaims, Your relationship to the Prophets or righteous people among your ancestors will not benefit you, unless you perform good deeds that bring about you religious benefit. They have their deeds and you have yours,
(And you will not be asked of what they used to do).''
This is why a Hadith proclaims, (Whoever was slowed on account of his deeds will not get any faster on account of his family lineage.)'
Allah says too in surah the Cow (al-Baqqara) N°2 verses n° 139-141:
"(139. Say (O Muhammad to the Jews and Christians), "Dispute you with us about Allah while He is our Lord and your Lord And we are to be rewarded for our deeds and you for your deeds. And we are sincere to Him (i.e. we worship Him alone and none else, and we obey His orders).'') (140. Or say you that Ibrahim, Isma`il, Ishaq, Ya`qub and Al-Asbat, were Jews or Christians Say, "Do you know better or does Allah And who is more unjust than he who conceals the testimony he has from Allah And Allah is not unaware of what you do.'') (141. That was a nation who has passed away. They shall receive the reward of what they earned, and you of what you earn. And you will not be asked of what they used to do.)"
About this Aya :
Allah directed His Prophet to pre-empt the arguments with the idolators:
(Say (O Muhammad to the Jews and Christians), "Dispute you with us about Allah) meaning, "Do you dispute with us regarding the Oneness of Allah, obedience and submission to Him and in avoiding His prohibitions,
(while He is our Lord and your Lord) meaning, He has full control over us and you, and deserves the worship alone without partners.
(And we are to be rewarded for our deeds and you for your deeds.) meaning, we disown you and what you worship, just as you disown us. Allah said in another Ayah,
(And if they belie you, say: "For me are my deeds and for you are your deeds! You are innocent of what I do, and I am innocent of what you do!'') (10:41), and, (So if they dispute with you (Muhammad ) say: "I have submitted myself to Allah (in Islam), and (so have) those who follow me'') (3:20). Allah said about Ibrahim,
His people disputed with him. He said: "Do you dispute with me concerning Allah'') (6:80), and,
(Have you not looked at him who disputed with Ibrahim (Abraham) about his Lord (Allah)) (2:258). He said in this honorable Ayah,
(And we are to be rewarded for our deeds and you for your deeds. And we are sincere to Him.) meaning, "We disown you just as you disown us,''
(And we are sincere to Him), in worship and submission.
Allah then criticized them in the claim that Ibrahim (Abraham), the Prophets who came after him and the Asbat were following their religion, whether Judaism or Christianity. Allah said,
(Say, "Do you know better or does Allah'') meaning, Allah has the best knowledge and He stated that they were neither Jews, nor Christians. Similarly, Allah said in the Ayah,
(Ibrahim (Abraham) was neither a Jew nor a Christian, but he was a true Muslim Hanifa (to worship none but Allah alone) and he was not of Al-Mushrikin) (3:67) and the following Ayat. Allah also said,
And who is more unjust than he who conceals the testimony he has from Allah 2:140. Al-Hassan Al-Bassri said, They used to recite the Book of Allah He sent to them that stated that the true religion is Islam and that Muhammad is the Messenger of Allah. Their Book also stated that Ibrahim (Abraham), Ismael , Ishaaq, Ya'qoub (Jacob) and the tribes were neither Jews, nor Christians. They testified to these facts, yet hid them from the people. Allah s statement,
(And Allah is not unaware of what you do), is a threat and a warning that His knowledge encompasses every one's deeds, and He shall award each accordingly. Allah then said,
(That was a nation who has passed away.) meaning, existed before you, (They shall receive the reward of what they earned, and you of what you earn.) meaning, they bear their deeds while you bear yours,
(And you will not be asked of what they used to do) meaning, the fact that you are their relatives will not suffice, unless you imitate their good deeds. Further, do not be deceived by the fact that you are their descendants, unless you imitate them in obeying Allah's orders and following His Messengers who were sent as warners and bearers of good news. Indeed, whoever disbelieves in even one Prophet, will have disbelieved in all the Messengers, especially if one disbelieves in the master and Final Messenger from Allah, the Lord of the worlds, to all mankind and the Jinns. May Allah's peace and blessings be on Muhammad and the rest of Allah's Prophets.