Sajid,
Check following link for stepwise help on restricting user based on Company.
https://erpnext.com/user-guide/setting-up/permissions/user-permissions
As per the latest updated, in the Permission Manager, after you check “Apply User Permission”, you will also be able to select field based on which you need to apply restriction. In your case, permission restriction will be done based on Company field.