Amr bin Shu'ayb narrates from his father, from his grandfather (may Allah be pleased with them both), that the Prophet (peace and blessings be upon him) said: "A vow is only that by which the pleasure of Allah is sought."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأيمان / 20049