The Messenger of Allah (ﷺ) forbade to sell grain which one buys by measurement until one receives it in full.

Sunan Abi Dawud Book 24, Hadith 80