اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ خَيْرِهَا وَخَيْرِ مَا جَبَلْتَهَا عَلَيْهِ وَأَعُوذُ بِكَ مِنْ شَرِّهَا وَشَرِّ مَا جَبَلْتَهَا عَلَيْهِ
(O Allaah, indeed I ask You for the good in her and the good characteristics that You created in her, and I seek refuge in You from the evil in her and the evil characteristics that You created in her)
And if you buy a camel, place your hand on top of its hump and say the same.”
“This hadeeth has evidence that Allaah is the Creator of good and evil, contrary to those – such as the Mu`tazilah and others – who hold that evil is not from His creation تبارك وتعالى. There is nothing in Allaah’s being Creator of evil that contradicts His Perfection تعالى, rather it is from His Perfection تبارك وتعالى. Details of that are present in comprehensive volumes, one of the best being the book Shifaa ul-`aleel fi l-qadhaa.i wa l-qadari wa tta`leel by Ibn ul-Qayyim, so look through it if you wish.
And is this supplication legislated when buying something like a car? My answer is: yes, due to the good that is hoped from it and the evil that is feared from it.”
 Saheeh Abu Daawood 2160, Saheeh al-Jaami` 360 and others
[aadaab uz-zifaaf 20-21 / asaheeha translations]