I moved to the US as a resident-alien right at the end of 2016 with my 2 month old daughter. I lived in the US for all of 2017, during which I received foreign maternity leave pay from the Canadian government and from my former employer. This pay was taxed in Canada. I'm not sure what the best option is for handling the foreign taxes I paid on these benefits. I thought I could use the Foreign Earned Income exception, however I didn't live in Canada at all during the year.