Regulations Governing Immigration Inspection and Data Collection and Utilization Article 7

Resident of Macau or Hong Kong shall carry a valid passport with an entry and exit permit for inspection when exiting the State. After the inspection is completed, the NIA shall imprint an exit stamp on his/her Entry and Exit Permit.
中文原文 入出國查驗及資料蒐集利用辦法第7條
香港或澳門居民出國,應備有效香港或澳門護照及入出境許可證件,經移民署查驗相符者,於其入出境許可證件內加蓋出國查驗章戳後出國。

English translation for reference only; the Chinese text prevails. Not legal advice.