Filling in income before and after I became a resident

I arrived in Canada and became a resident in August 2023. I had income in my hometown throughout the year. When filling out the tax form, how can I separate the input of the income before and after I arrived? As the income I earned before I arrived should not be taxable, I believe it is crucial to separate them.