The same regulation applies to all who unintentionally commit a sin, whether they are native Israelites or resident foreigners.