Hadith #555
Arabic Text
حَدَّثَنَا سُلَيْمَانُ بْنُ دَاوُدَ قَالَ أَنْبَأَنَا أَبُو زُبَيْدٍ عَنْ الْأَعْمَشِ عَنْ أَبِي صَالِحٍ عَنْ أَبِي هُرَيْرَةَ قَالَ كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا مَرَّ
تْ بِهِ جِنَازَةٌ سَأَلَهُمْ عَلَيْهِ دَيْنٌ فَإِنْ قَالُوا نَعَمْ قَالَ تَرَكَ وَفَاءً فَإِنْ قَالُوا نَعَمْ صَلَّى عَلَيْهِ وَإِلَّا قَالَ صَلُّوا عَلَى صَاحِبِكُمْ
Isnad Chain
English Translation
Sulayman ibn Dawud narrated to us who (may Allah be pleased with him) reported that abu Zubayd informed us, from al-A'mash, from Abu Salih, from Abu Hurayrah (رضي الله عنه) who said: the Messenger of Allah ﷺ used to teach us istikharah in all matters, just as he would teach us a surah of the Quran. He said: 'When one of you intends a matter, let him pray two rak'ahs other than the obligatory prayer, then say: O Allah, I seek Your guidance by Your knowledge, and I seek Your ability by Your power, and I ask of Your great bounty...'
Quran References
Reference: Musnad Ahmad, Book 19, Hadith 555
Sunnah.com ref: Musnad Ahmad 8593
Islam.wiki ID: IWH-44983