It is narrated from Muhammad bin Sirin (may Allah have mercy on him) that his father invited a group of the noble Companions (may Allah be pleased with them) of the Prophet ﷺ to a wedding feast (walimah). The Companions (may Allah be pleased with them) came, and among them was Ubayy bin Ka'b (may Allah be pleased with him). The narrator says: I think that Ubayy bin Ka'b (may Allah be pleased with him) supplicated for blessing and then left.
Hadith Referenceمسند الإمام الشافعي / كتاب الصيام / 639
Hadith Takhrijاسناده منقطع لأن ابن سيرين يحكى قصة وليمة أبيه يامه ولم يك اذ ذاك قد خلق : اخرجه البيهقي في المعرفة السنن والآثار (4337) وعبد الرزاق (19665)۔