On the day that it happened both Egypt and the US confirmed that Egypt had informed Isreal in advance.
https://www.bbc.com/news/world-middle-east-67082047
This article is from a few days after that, but I remember that there were confirmations already during the day.