It was narrated from Ibn 'Umar that the Prophet (ﷺ) said:
"Whoever buys food, let him not sell it until he has taken full possession of it."
English reference: Vol. 3, Book 12, Hadith 2226
Arabic reference: Book 12, Hadith 2311