Chains by Laurie Halse Anderson
After being sold to a cruel couple in New York City, a slave named Isabel spies for the rebels during the Revolutionary War.

source