Ah, here it is, Oct 18: https://www.whitehouse.gov/briefing-room/speeches-remarks/2023/10/18/remarks-by-president-biden-on-the-october-7th-terrorist-attacks-and-the-resilience-of-the-state-of-israel-and-its-people-tel-aviv-israel/
“But I caution this: While you feel that rage, don’t be consumed by it. After 9/11, we were enraged in the United States. And while we sought justice and got justice, we also made mistakes.” He goes on to warn against collective punishment and call for humanitarian aid for Gaza.