Assalamu alaikum. Based on this question What is the fate of someone who died never having heard of Islam?
My doubt is regarding this hadith.
Imaam Ahmad in his Musnad (16301) said: Allaah's Messenger (sallallaahu 'alayhe wa sallam) said: "Four will have proofs (in their favor) on the Day of Standing: (1) A deaf man who could not hear anything; (2) a fool (who could not understand anything); (3) a feebly old man; and (4) a man who died in the fatrah (the period between prophets). As for the deaf man, then he will say: 'My Lord, Islaam came and I did not hear anything.' And as for the fool, then he will say, 'My Lord, Islaam came and the children were throwing dung at me.' And as for the feebly old man, then he will say, 'My Lord, Islaam came and I did not understand anything.' And as for the one who died in the fatrah (period between prophets), then he will say, 'My Lord, no messenger from you came to me.' So He (Allaah) will take oaths from them that they will obey Him (in what He is about to request from them), so it (an order) will be sent to them: 'Enter the Fire!' And verily by Him in whose Hand is my soul, if they entered it, it will be cool and soothing."
In this hadith, it's mentioned that a man who died in the fatrah (the period between prophets) will have proof. Does this refer to the man who avoided shirk and other beliefs while he lived or does this hadith refers to all of the men who were born in the fatrah (the period between prophets) who even did shirk but lived a good life?
Because as far as I know, Ibrahim (pbuh) understood that idolatry is wrong even before he accepted Islam. And from another hadith, it's clearly seen that Prophet Muhammad's parents will be punished for doing idolatry. Sorry if I was wrong. And please answer.