It is narrated from Sayyidah Umm Sa'd al-Ansariyyah (may Allah be pleased with her) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever has given his wealth to someone as a loan, no zakah is due from him (on that wealth)."
Imam Abu Ya'la recorded it with a da'if (weak) chain, the reason being that one of its narrators, Muhammad bin Zadhan al-Madani, is weak.