The Real Loser — In The Sight Of Allah On The Day Of Resurrection:

The Prophet (saw) said: “I certainly know people of my Ummah who will come on the Day of Resurrection with good deeds like the mountains of Tihaamah, but Allah will make them like scattered dust.”
Thawbaan (May Allah be pleased with him)said: O Messenger of Allah(saw),describe them to us and tell us more, so that we will not become of them unknowingly.
He (saw)said: “They are your brothers and From your race, worshipping at night as you do, but they will be people who, when they are alone, transgress the sacred limits of Allah.” (Ibn Maajah:4245)
Ibn Hajar al-Haythami (May Allah have mercy on him) in al-Zawaajir (3/49) regarded it as pretending to be righteous outwardly and transgressing the sacred limits; even committing minor sins when one is alone is regarded as something major, and he quoted this hadeeth as evidence.
He said: The one whose habit is to make a show of being good and concealing his evil ways causes more harm and misguidance to the Muslims, because he has no piety and no fear of Allah.
“Except those who repent and believe (in Islamic Monotheism), and do righteous deeds; For those, Allah will change their sins into good deeds, and Allah is Oft‑Forgiving, Most Merciful”. (Al-Furqaan 25:68-70).
Al-Harawi (May Allah have mercy on him) said:
Repentance cannot be sound except with three things:
Restoring the rights of others, Feeling regret For his sins and Striving to make up For what he missed of good deeds.
Ibn al-Qayyim said:
Restoring the rights of others means — Repenting From the sins that he committed against Allah, and paying off the dues that he owes to other people.
Feeling regret For his sins means — May be interpreted in two ways:
(i) Feeling sad For his sins, which is indicative of his turning back towards Allah, unlike one who is not upset by his sin, which is indicative of the corruption and deadening of his heart.
(ii) Being upset by his brother's sins, so that it is as if he is the one who has done it, and he does not rejoice in his brother's misfortune. This is indicative of the softening of his heart and his love of Allah.
Striving to make up For what he missed — This means catching up with what he has missed out on acts of worship and drawing close to Allah, by doing acts similar to them or better than them, especially For what is rest of his life, when the time of his meeting Allah draws near. (Madaarij al-Saalikeen, 1/434)
So,the point is that — on the Day of Resurrection, such a person will be at a loss who will bring many Good deeds in his book of deeds, but Allah(swt) will turn them into dust and blow them away because he used to do Good deeds in Front of people but committed sins in solitude.
It means,such a person did not have Fear of Allah(swt) in his heart, but because of the Fear of people, he used to do Good deeds in Front of people and remained pious.
May Allah(swt) keep our solitude pure and clean and accept our good deeds. (Ameen).
JazakAllah (May Allah Reward You [with] Goodness)For Reading.
