Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) said: When the Prophet (peace and blessings be upon him) came to Madinah, the people were among the worst in their measuring, so Allah Almighty revealed this verse: "Woe to those who give short measure" [Surah al-Mutaffifin: 1]. After that the people reformed themselves.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب البيوع / 11165