Income from HK before you entered Canada has NO impact on your Canadian Income taxes payable.
The reason they asked you "foreign income" in this case is to calculate your personal exemption amount.
Since you were in Canada for less than a year and most likely your personal exemption will be pro-rated based on number of days your are in Canada.
If your income is a few thousands as you said, I don't think you have to worry anything for 2023 T1.
Did you have income from HK after you entered Canada?