The Messenger of Allah ﷺ said something to that effect, though the first version is more complete.
حدثنا أحمد بن حنبل حدثنا أبو أحمد محمد بن عبد الله حدثنا سفيان عن أبي الزبير عن جابر
قال رسول الله ﷺ بمعناه والأول أتم
No references are available.
[Sahih] see the previous hadith. It is also found in Musnad Ahmad, 1/32, as a mawquf report, and Ibn Kathir quoted it in Jami al-Masanid wal-Sunan, no. 18, and nos. 64, 65, 66, as mawquf.