David Wilmot was a congressman from Pennsylvania who in 1846 proposed an amendment to a military appropriations bill that slavery be forbidden in any territory obtained from Mexico during or after the Mexican War (1846-48).
The amendment passed in the House but not the Senate.