A lot of prophets had bad wives as well as we see with Prophet Lut (as). Some people come from good families and turn out bad such as the son of prophet Nuh (as).
The author Sh. Baqir Qarashy has a great biography set on the 14 Masumeen (as). One volume per Masoom. I would highly recommend it.