Praise be to Allah.
If the apartment was sold to one of the heirs – and it was not a mere promise – then the apartment became his, whether he paid for it immediately or they agreed to give him more time. Possession of the apartment is transferred to the purchaser as soon as the deal is concluded.
In that case, the other brother’s purchase of the apartment from the heirs is not valid, because it was no longer in their possession, so they sold him something that they do not possess.
If the first purchaser agreed to let the heirs sell the apartment to the other brother, this means that the sale to him was annulled.
If that was done without considerable coercion – and deception is something other than coercion – then the annulling of the first sale is valid, and the sale that came after it is valid, and recanting or changing his mind after that does not mean anything, because possession of the apartment has been transferred to the other brother. So he cannot go back to it, unless the sale [to the other brother] is annulled, and he buys the apartment again from the heirs.
And Allah knows best.