It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Only the one who hopes for Paradise will enter it, and only the one who fears the Fire will be kept away from it, and Allah, the Mighty and Majestic, shows mercy only to the one who shows mercy (to others)."
Imam al-Bukhari and Imam Muslim (may Allah have mercy on them both) narrated it through the narration of Abu Uthman al-Nahdi (may Allah have mercy on him), from Sayyiduna Usamah bin Zayd (may Allah be pleased with them both), from the Prophet (peace and blessings be upon him): "Allah shows mercy only to those of His servants who are merciful."