Ibn 'Abbas (RA):
The swearing to stay away from one's wife in al-Jahiliyyah era was for one or two years. Then, Allah appointed a period of four months for it. So, if it is less than four months, it is not swearing to stay away from one's wife.
[al-Baihaqi reported it]