A woman marries poor men in succession but each time by some bizarre chance they become rich
“What a Way to Go!” (1964)
Quote from this IMDb review page:
“Poor girl who just wants to stay poor but keeps marrying poor men who become rich”
If you think that this is the movie you are looking for, then please select my answer as Best Answer by clicking on the “Select” button.