It is the first time that Egypt has laid down conditions for Hamas to form a government in the Palestinian territories .