"If two (separate) authorized persons make a sale (of the same thing), then the first transaction is the one that is valid. "
Sunan Ibn Majah Book 12, Hadith 55