Jabir b. Abdullah (Allah be pleased with them) reported Allah's Messenger (ﷺ) as saying
When you purchase foodgrains, do not sell them until you have taken possession of them.