Sunan an-Nasa'i #4608
The Book of Financial Transactions 44:160
It was narrated from Salim that his father said:
"I saw people being beaten (in punishment) at the time of the Messenger of Allah for buying food unmeasured and selling it before bringing it to their own camp."