Al-Sha'bi says that if someone says, "On the day I buy so-and-so, he is free," and then buys him, he will become free.