Allah's Messenger (ﷺ) forbade Ash-Shighar, which means that somebody marries his daughter to somebody else, and the latter marries his daughter to the former without paying Mahr.
Sahih al-Bukhari Book 67, Hadith 49