Sayyiduna Ali (may Allah be pleased with him) narrates: The Prophet (peace and blessings be upon him) ordered me to fill in their wells. (The narrator says:) That is, this happened on the day of Badr.
Abu Ya'la recorded it. Its chain contains Yusuf bin Khalid al-Samti, who is da'if (weak).