While the Prophet ﷺ was praying the evening prayer, he said, "Allah hears the one who praises Him." Then, before prostrating, he said, "O Allah, save Ayyash bin Abu Rabia. O Allah, save Salama bin Hisham. O Allah, save Walid bin Walid. O Allah, save the oppressed believers. O Allah, tighten Your grip on Mudar. O Allah, make it years for them like the years of Yusuf."
بينا النبي ﷺ يصلي العشاء، إذ قال: سمع الله لمن حمده. ثم قال قبل أن يسجد: اللهم نج عياش بن أبي ربيعة، اللهم نج سلمة بن هشام، اللهم نج الوليد بن الوليد، اللهم نج المستضعفين من المؤمنين، اللهم اشدد وطأتك على مضر، اللهم اجعلها سنين كسني يوسف.
Bukhari reported it in the tafsir (4598), and Muslim in "Mosques and Places of Prayer" (295: 675), both through Shayban, from Yahya, from Abu Salama, from Abu Hurairah, who said, then he mentioned it. The wording is Bukhari's, for Muslim did not give the full wording with this chain, but only related the beginning of the hadith and referred the rest to what came before it.