Amr bin Shu'ayb narrates from his father, from his grandfather (may Allah be pleased with him), that when the Noble Messenger (peace and blessings be upon him) returned from the Battle of Hunayn, the people surrounded him, asking for wealth, so that the she-camel shied and his blessed cloak got caught on a tree. He (peace and blessings be upon him) said: "Return my cloak to me. Do you fear miserliness from me? If Allah were to grant me as many livestock as the trees of Tihamah, I would distribute all of them among you, and then you would not find me miserly, cowardly or a liar." Then he (peace and blessings be upon him) took hold of some hair from a camel's hump, raised it and said: "From the wealth Allah has granted, my share is not even this much, except the one-fifth, and the khumus too is returned to you." At the time of distributing the khumus, a man came who considered even a needle or thread from this wealth lawful for himself. He (peace and blessings be upon him) said: "Return the thread and the needle, for breach of trust in the spoils of war will be shame, fire and disgrace on the Day of Resurrection."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 18209