Sunan an-Nasa'i, Book 44, Hadith 152 (Nasa'i 4610)

It was narrated that Ibn 'Abbas said:

"The Messenger of Allah said: 'Whoever buys food let him not sell it until he takes possession of it. Ibn 'Abbas said: "I think the same applies to everything else as to food."