During his visit, Lam met with the Beijing's top official overseeing Hong Kong affairs, and discussed the importance of national security in the region.
"There were many discussions surrounding national security as this is an important topic," Lam said.
The national security law, also known as the Hong Kong national security law, was implemented in Hong Kong in June 2020 by Beijing.
The law gives the Hong Kong government the power to ban political parties and restrict the freedom of speech and assembly in the region.
Lam's announcement has sparked controversy, with many criticizing the move as a violation of Hong Kong's autonomy and democratic rights.
Protests and demonstrations have been held in the region in recent years to protest against the law and to call for greater political freedoms.
Hong Kong has a unique political system, with a high degree of autonomy from China, but also a special status as a special administrative region (SAR) of the People's Republic of China.
The city has a high degree of civil liberties and democratic rights, but there have been tensions between Hong Kong and Beijing over the years.
The passage of Article 23 has been a source of contention for many in Hong Kong, with some arguing that it would undermine the autonomy and democratic rights of the region.
The move to pass the law comes as the region is grappling with the COVID
-19 pandemic and a growing sense of unease over China's influence in the region.