This paper uses the annual data of 188 commercial banks from 2008 to 2019, selects two major indicators, including the external financing liquidity MS and internal funding stability NSFR, to test the impact of changes in internal and external liquidity on commercial banks' risk-taking. After solving the endogenous problems, it was found that the higher the external financing liquidity of commercial banks, the more sufficient the internal stable funds, and the smaller the risk of banks. Robustness tests from multiple perspectives all support this conclusion. Further cross regression results show that commercial banks take risks by holding sufficient NSFR, which will reduce their reliance on interbank market financing. The fluctuation of liquidity and the decomposition test of NSFR also proved the correctness of the benchmark conclusion. Among banks with different property rights, asset sizes, capital adequacy levels, and loan quality, the regression results are also heterogeneous. The research conclusions of this paper have reference significance for regulators to strengthen liquidity management of commercial banks and reduce liquidity risks.