Anas bin Malik reported,

The Prophet ﷺ sent seventy men, known as the reciters, on a mission. Two clans of Banu Sulaym, Ril and Zakwan, intercepted them at a well called Bir Maunah.The men said, "By Allah, we did not come for you. We are only passing through on a mission for the Prophet ﷺ."But they killed them. So the Prophet ﷺ invoked Allah against them for a month in the dawn prayer, and that was the beginning of the qunut. Before that, we did not perform qunut.Abdul-Aziz said, A man asked Anas about the qunut, "Is it after the bowing, or upon finishing the recitation?"Anas replied, "No, rather it is upon finishing the recitation."

Bukhari 4088

Sahih

حدثنا أبو معمر حدثنا عبد الوارث حدثنا عبد العزيز

عن أنس رضي الله عنه قال

بعث النبي ﷺ سبعين رجلا لحاجة يقال لهم القراء فعرض لهم حيان من بني سليم رعل وذكوان عند بئر يقال لها بئر معونة فقال القوم والله ما إياكم أردنا إنما نحن مجتازون في حاجة للنبي ﷺ فقتلوهم فدعا النبي ﷺ عليهم شهرا في صلاة الغداة وذلك بدء القنوت وما كنا نقنت قال عبد العزيز وسأل رجل أنسا عن القنوت أبعد الركوع أو عند فراغ من القراءة قال لا بل عند فراغ من القراءة

البخاري 4088صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Expedition of Raji, Ril, Zakwan, and Bir Maunah
Numbering
Darussalam 4088
Bukhari 4088