Waqf of Masjids and their lands

A donor of an endowed land exchanging it for another with the same intention