It is narrated from Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) used to say: "When one of you acquires a riding animal, a woman, a servant or a camel, let him place his hand on its forelock and say: 'Allahumma inni as'aluka khayraha wa khayra ma jabaltaha 'alayh, wa a'udhu bika min sharriha wa sharri ma jabaltaha 'alayh' (O Allah, I ask You for its good and the good of the nature upon which You created it, and I seek refuge with You from its evil and the evil of the nature upon which You created it). As for the camel, you should take hold of the top of its hump and make a similar supplication."
Hadith Takhrij«يحيى بن أيوب الغافقي: صدوق ربما أخطأ؛ محمد بن عجلان صدوق؛ عمرو بن شعيب عن أبيه عن جده حسن (من الحفظ)؛ وأخرجه أبو داود (2160) وابن ماجه» «أخرجه سنن أبي داود برقم: 2160، وأخرجه سنن ابن ماجه برقم: 1918، 2252، وأخرجه المستدرك على الصحيحين برقم: 2811، وأخرجه الأوسط في السنن والإجماع والاختلاف برقم: 8183، وأخرجه شرح السنة برقم: 1329»