A giver of a gift buying back that same gift from the one who received it
It is not permissible for the one who gave a gift to buy back from his brother what he had given him. It is narrated from Umar (may Allah be pleased with him) that he said: I mounted a man on a horse for the sake of Allah, but he neglected it. I thought he would sell it cheaply, so I asked the Messenger of Allah ﷺ about it, and he ﷺ said:
Do not buy it from him, even if he gives it to you for one dirham, for the one who takes back his charity is like the dog that returns to its vomit.
Reference: Sahih al-Bukhari, hadith no. 2623, Sahih Muslim 1620/1
Reference: Al-Lajna al-Da’ima: 10635