It is narrated from Sayyiduna Ali (may Allah be pleased with him) that he said: "Sayyiduna al-Mughirah bin Shu'bah (may Allah be pleased with him) had a spear, and whenever we went out with the Messenger of Allah (peace and blessings be upon him), he would plant it (in the ground); then people would pass by it and pick it up. So I said to him: 'If I come to the Prophet (peace and blessings be upon him), I will certainly inform him of this.' He said: 'If you do that, no lost item will ever be picked up.'"
Abu al-Khalil (may Allah have mercy on him): Salamah bin Kuhayl (may Allah have mercy on him) and Abu Ishaq (may Allah have mercy on him) narrated from him.
Imam Ahmad (may Allah have mercy on him) narrated it from Abu Ahmad (may Allah have mercy on him).
And Ibn Majah (may Allah have mercy on him) narrated it from Muhammad bin Isma'il bin Samurah (may Allah have mercy on him), from Waki' (may Allah have mercy on him), from Sufyan (may Allah have mercy on him).
Related hadith on this topic