What will benefit you on the Day of Resurrection
Aa’ishah (radi Allahu anha) said, “O Messenger of Allah (sal Allahu alaihi wa sallam)! During the days of ignorance, Ibn Jad’aan used to uphold the ties of kinship and feed the poor. Will that benefit him at all?” The Messenger (sal Allahu alaihi wa sallam) said, “It will not be of any benefit to him because he never said at any day, ‘O Lord! Forgive me my sins on the Day of Judgement.’”
The above Hadith which was narrted by ‘Aa’ishah (radi Allahu anha) who said that she asked the Prophet (sal Allahu alaihi wa sallam): “O Messenger of Allah, during the Jaahiliyyah, ‘Abd-Allaah ibn Jad’aan used to uphold the ties of kinship, set captives free and honour his guests (and she mentioned a number of good characteristics, but he was a mushrik and died as such). Will that be of any benefit to him?”
The Prophet (sal Allahu alaihi wa sallam) said: “No, for he never said, ‘O Lord forgive me my sins on the Day of Reckoning” – meaning that he was a kaafir who did not believe in the resurrection and reckoning, so the good deeds he used to do will not benefit him.
A similar example is that of Haatim al-Tayy; the Prophet (sal Allahu alaihi wa sallam) told his daughter Sufaanah, “If your father had been a Muslim we would have prayed for mercy for him.”
So we benefit from this Hadith that even if a person is good or humble or generous or respectful towards his parents or any other worthy characteristic, this will not help him at all with Allah (if this person dies as a Kaafir [disbeliever]); he will get his reward in this world but he will be punished in the next life due to his disbelief.
Allah says (interpretation of the meaning): “Verily, Allah forgives not that partners should be set up with Him (in worship), but He forgives except that (anything else) to whom He wills; and whoever sets up partners with Allaah in worship, he has indeed invented a tremendous sin.” [al-Nisa’ 4:48]
“Verily, whosoever sets up partners (in worship) with Allaah, then Allaah has forbidden Paradise to him, and the Fire will be his abode. And for the Zaalimoon (polytheists and wrongdoers) there are no helpers” [al-Maa'idah 5:72]
And Allah knows best!