Sayyiduna Ubayy bin Ka'b (may Allah be pleased with him) narrated: the Prophet (peace and blessings be upon him) said: "Whoever would like to be given a lofty building (in Paradise) and to have his ranks raised, let him overlook the one who has wronged him, give to the one who has deprived him, and keep ties with the one who cuts him off."
Al-Tabarani recorded it in al-Mu'jam al-Kabir and al-Mu'jam al-Awsat; its chain contains a narrator, Abu Umayyah bin Ya'la, who is da'if (weak).