Jami` at-Tirmidhi, Book 20, Hadith 5 (Tirmidhi 1562)

Narrated Thabit bin Adh-Dahhak:

That the Prophet (ﷺ) said: "It is not for a person to vow about that over which he has no control."