It is narrated from Sayyiduna Ali (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) forbade going out ahead to meet trading caravans (before they reach the market) to trade with them, slaughtering milk-giving animals, slaughtering sheep and goats, and buying and selling before sunrise. I say: Imam Ibn Majah narrated it in his Sunan through the same route of Ubaydullah bin Musa, but his narration does not contain the words "and slaughtering sheep and goats" to the end.
This chain is da'if (weak) because of the weakness of Nawfal bin Abd al-Malik.