It is narrated from Sayyiduna Abu Razin al-Uqayli (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said to me: "You and I will drink milk whose colour has not changed." I said: How will Allah Almighty bring the dead to life? He (peace and blessings be upon him) said: "Have you not passed by land that was barren, then passed by it and it was green and flourishing, then it became barren, and then you saw it flourishing again?" I said: Yes, indeed, it was exactly so. He (peace and blessings be upon him) said: "Just so will the raising again (nushur) be." I said: How can I know that I am a believer? He (peace and blessings be upon him) said: "Whoever of this Ummah (the narrator Ibn Abi Qays said: or he said: of my Ummah) does a good deed and knows that it is a good deed and that Allah Almighty will give him a better reward for it, or commits a bad deed and knows that it is a sin and that Allah Almighty will punish him for it or (if He wills) pardon it, that person is a believer."
Imam Ahmad bin Hanbal (may Allah have mercy on him) narrated it in detail, in which Sayyiduna Abu Razin al-Uqayli (may Allah be pleased with him) relates: I came to the Messenger of Allah (peace and blessings be upon him) and said: O Messenger of Allah! How will Allah Almighty bring the dead to life? He (peace and blessings be upon him) said: "Have you not passed by a barren, drought-stricken part of your land that later became green?" I said: Yes. He (peace and blessings be upon him) said: "Just so will the raising again be." I said: O Messenger of Allah! What is faith? He (peace and blessings be upon him) said: "That you bear witness that there is no true god except Allah, He is One and has no partner, and that Muhammad (peace and blessings be upon him) is His servant and Messenger; that Allah and His Messenger are dearer to you than everything else in the universe; that being burned in the Fire is dearer to you than associating anyone with Allah; and that you love someone with whom you have no family tie purely for the sake of Allah. When you become like this, faith will settle in your heart just as the love of cold water enters the heart of a thirsty person on a scorching day." I said: O Messenger of Allah! How can I know that I am a believer? Then he mentioned the rest of the hadith like the previous narration.