Reported from the Prophet ﷺ with the same wording.
حدثنا محمد بن عوف أن سعيد بن الحكم حدثهم أخبرنا يحيى يعني بن أيوب حدثني كعب بن علقمة أنه سمع ابن شماسة عن أبي الخير
عن النبي ﷺ مثله
No references are available.
Sourcing, Muslim narrated it in the Book of Vows, chapter on the expiation of vows, hadith no. 1645, from the hadith of Kaab bin Alqama, with this wording.