Sayyiduna Abdullah bin Ja'far (may Allah be pleased with him) narrates that the Prophet (peace and blessings be upon him) said: "When you see someone who is detached from the world, stay close to him, for he will have been granted wisdom."
Abu Ya'la recorded it; its chain contains a narrator, Umar bin Harun al-Balkhi, who is matruk (abandoned).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الزهد / 18060