Sahih Muslim 1543
The Book of Mosques and Places of Prayer
وَحَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ، حَدَّثَنَا حُسَيْنُ بْنُ مُحَمَّدٍ، حَدَّثَنَا شَيْبَانُ، عَنْ يَحْيَى، عَنْ أَبِي سَلَمَةَ، أَنَّ أَبَا هُرَيْرَةَ، أَخْبَرَهُ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم بَيْنَمَا هُوَ يُصَلِّي الْعِشَاءَ إِذْ قَالَ " سَمِعَ اللَّهُ لِمَنْ حَمِدَهُ " . ثُمَّ قَالَ قَبْلَ أَنْ يَسْجُدَ " اللَّهُمَّ نَجِّ عَيَّاشَ بْنَ أَبِي رَبِيعَةَ " . ثُمَّ ذَكَرَ بِمِثْلِ حَدِيثِ الأَوْزَاعِيِّ إِلَى قَوْلِهِ " كَسِنِي يُوسُفَ " . وَلَمْ يَذْكُرْ مَا بَعْدَهُ .
Abu Salama narrated that Abu Huraira told him that when the Messenger of Allah (ﷺ) pronounced:" Allah listened to him who praised Him." and before prostration, he would recite this in the 'Isya' prayer: O Allah! rescue 'Ayyash b. Abu Rabi'a, and the rest of the hadith is the same as narrated by Auza'i to the words:" Like the famine (at the time) if Joseph." but he made no mention of that which follows afterwards
Text from the public-domain hadith-api dataset. Numbering follows that dataset and can differ by a few from some printed editions — check the wording, not only the number.