We shall see if Gulf money dries up which has been said for many, many years. I dont see Egypt allying with Turkey as long as Erdo is in power.It's true that they are poor for now, and probably for the foreseeable future. However the Gulf states don't have a particularly bright future either, now do they? Their downfall has started, and it will only get worse within a decade or two. Once Gulf money dries up, the USA will no longer care. They will still be in the region to protect Israel, but they won't care about the UAE or Saudi Arabia.
Egypt's best choice would be to work with Turkey, as together they could divide the eastern Mediterranean pie and also work together strategically for the future. The important part here is north Africa, as both nations could easily eliminate any threats in the region while also benefiting economically. It would make the most sense for both countries, but instead Egypt has become best friends with its former enemies (Israel and Cyprus). The problem for Egypt is that it'll be left on its own sooner or later, as Gulf money dries up. Then if Turkey and Israel fix relations post-Erdogan/Bibi then Egypt will become a target, the same way Turkey is right now. The only difference is that Turkey is fully capable of standing against the coalition that it is facing. Egypt won't be able to, as even its geography isn't suitable for such circumstances.
KSA has 80 year oil reserves and Automobile gasoline only accounts for approximately 40% of the worlds oil consumption. Much of the other 60% will still be relied on into the forseable future. That is also not factoring in large deposits of Uranium and other precious metals throughout the country. They are also ripe for large areas using renewable energy.