I think it is from the Prophet ﷺ who said, "And the good is what Allah brought of goodness afterward, and the reward of truthfulness which He granted us after the day of Badr."
حدثني محمد بن العلاء حدثنا أبو أسامة عن بريد عن جده أبي بردة
أراه عن النبي ﷺ قال وإذا الخير ما جاء الله به من الخير بعد وثواب الصدق الذي آتانا بعد يوم بدر