If some person sold a car in cash and then repurchased it again from the person who bought it, as a part of the sum deserved for selling him another c

A: If the case is as you mentioned, the transaction is permissible. The basis for these transactions is permissibility; and the question does not include any contradiction with this basis.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family and Companions.