Sunan an-Nasa'i, Book 44, Hadith 160 (Nasa'i 4618)

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."