Abdullah bin Abbas reported,

A group of the Prophet's ﷺ companions passed by a settlement that had a water source, and among the people there was someone who had been bitten or stung. A man from the inhabitants of that place came up to them and asked, "Is there anyone among you who can perform ruqyah? There is a man at the water who has been bitten or stung."So one of them went and recited the Opening of the Book over him in exchange for some sheep, and the man recovered. He brought the sheep back to his companions, but they disapproved of this and said, "You took payment for reciting the Book of Allah."When they arrived in Madinah, they said, "Messenger of Allah, he took payment for reciting the Book of Allah."The Messenger of Allah ﷺ replied, "The most deserving thing for which you may take payment is the Book of Allah."

Bukhari 5737

Sahih

حدثني سيدان بن مضارب أبو محمد الباهلي حدثنا أبو معشر البصري هو صدوق يوسف بن يزيد البراء قال حدثني عبيد الله بن الأخنس أبو مالك عن ابن أبي مليكة

عن ابن عباس

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

البخاري 5737صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Medicine
Chapter
Conditions for ruqya in exchange for a flock of sheep
Numbering
Darussalam 5737
Bukhari 5737