Article Two of the United States Constitution
Since it was passed in 1804, electors are only allowed to vote for one Presidential candidate and one Vice President.  They do not have to vote for someone from a different state.