These two hadeeths explain repentance and evince the fact that Allah pardons whoever sincerely turns to Him in repentance irrespective of the enormity of his sin. This is because Allah – the Exalted - says in His book:
“And those who invoke not any other ilâh (god) along with Allah, nor kill such life as Allah has forbidden, except for just cause, nor commit illegal sexual intercourse and whoever does this shall receive the punishment. The torment will be doubled to him on the Day of Resurrection, and he will abide therein in disgrace. 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: 68-70)
The first hadeeth is from Abdullah bin Abbass (may Allah be pleased with them both) and its meaning is: That the son of Adam will never be satisfied with wealth. Even if he has a valley-full of wealth, “he will crave”: i.e., he would seek to have two: Nothing can fill his belly except the earth. And that will be when he dies and is buried; when he would have abandoned the world and its contents. At that moment, he will be content since they would have eluded him.
Even at that, the Messenger (ﷺ) encouraged seeking repentance. This is because, in most cases, the individual seriously desirous of wealth does not avoid seeking wealth through unlawful means! However, the cure for that is turning to Allah in repentance. So, he – peace and blessings be upon him - said: “Allah turns with mercy to him who turns to Him in repentance.” Hence, whoever repents from his evils - even if these inequities are related to wealth - surely, Allah will forgive him.
As for the second hadeeth, it was reported from Abu Hurayrah (may Allah be pleased with him) that the Prophet (ﷺ) said: “Allah smiles at two men...”
Allah smiles at these two men because strong enmity existed between them both while they were in this world to such an extent that one of them killed the other. But Allah changed this enmity in the heart of both of them. He removed the grudges they nursed against one another since the dwellers of the Paradise will be cleansed of every form of mutual hatred and grudge. With regards to them, Allah the Exalted says:
“And We shall remove from their breasts any sense of injury (that they may have), (So they will be like) brothers facing each other on thrones.” (al-Hijr-47)
This is why Allah – the Mighty and Sublime - was amazed at these two men: They were sworn enemies and then, Allah the Exalted favored the one who killed the other and was a disbeliever to turn in repentance and Allah pardoned him.
It contains evidence that: If the disbeliever asks for repentance from his disbelief – even if he had murdered a Muslim – Allah the Exalted will grant him pardon since accepting Islam obliterates the entire sins committed before it.