Sahih al-Bukhari 4069
Sahih al-Bukhari · Book 64: Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi) · “Not for you is the decision…”
Narrated Salim's father:
حَدَّثَنَا يَحْيَى بْنُ عَبْدِ اللَّهِ السُّلَمِيُّ ، أَخْبَرَنَا عَبْدُ اللَّهِ ، أَخْبَرَنَا مَعْمَرٌ ، عَنِ الزُّهْرِيِّ ، حَدَّثَنِي سَالِمٌ ، عَنْ أَبِيهِ ، أَنَّهُ سَمِعَ رَسُولَ اللَّهِ صلى الله عليه وسلم إِذَا رَفَعَ رَأْسَهُ مِنَ الرُّكُوعِ مِنَ الرَّكْعَةِ الآخِرَةِ مِنَ الْفَجْرِ يَقُولُ " اللَّهُمَّ الْعَنْ فُلاَنًا وَفُلاَنًا وَفُلاَنًا ". بَعْدَ مَا يَقُولُ " سَمِعَ اللَّهُ لِمَنْ حَمِدَهُ رَبَّنَا وَلَكَ الْحَمْدُ ". فَأَنْزَلَ اللَّهُ {لَيْسَ لَكَ مِنَ الأَمْرِ شَىْءٌ} إِلَى قَوْلِهِ { فَإِنَّهُمْ ظَالِمُونَ}
That he heard Allah's Messenger (ﷺ), when raising his head from bowing of the last rak`a of the morning prayer, saying, "O Allah! Curse so-and-so and so-and-so" after he had said, "Allah hears him who sends his praises to Him. Our Lord, all the Praises are for you!" So Allah revealed:-- "Not for you (O Muhammad! )......(till the end of Verse) they are indeed wrong-doers." (3.128)