"Any man who sells to two men, it is for the one who was first."

Sunan Ibn Majah Book 12, Hadith 54