When was the Wilmot Proviso first brought up in Congress?

1. Just after the war started
2. After the US forced the surrender of Mexican troops
3.After the Treaty of Guadalupe Hidalgo was signed