Abu Bakr swore an oath insisting the Prophet ﷺ do something, so the Prophet ﷺ said to him, "Do not swear an oath."
حدثنا أحمد بن حنبل حدثنا سفيان عن الزهري عن عبيد الله بن عبد الله
أن أبا بكر أقسم على النبي ﷺ فقال له النبي ﷺ لا تقسم
Muslim narrated it in the Book of Dreams, Chapter on the interpretation of dreams, no. 2269, from the hadith of Sufyan bin Uyayna. Bukhari narrated it in the Book of Dream Interpretation, Chapter on one who does not consider a dream bound by the first interpreter's reading if he was mistaken, no. 7046, from the hadith of Zuhri, at greater length. It is also found in Musnad Ahmad, 1/219.