Sayyiduna Ali (may Allah be pleased with him) narrated: the Prophet (peace and blessings be upon him) said to me: "Shall I not guide you to the noblest character of this world and the Hereafter? It is that you keep ties with the one who cuts you off, give to the one who deprives you, and forgive the one who wrongs you."
Al-Tabarani recorded it in al-Mu'jam al-Awsat; its chain contains a narrator, al-Harith, who is da'if (weak).