By Allah, I heard the Messenger of Allah ﷺ say, "Truly the fortunate one is he who is kept away from trials. Truly the fortunate one is he who is kept away from trials. Truly the fortunate one is he who is kept away from trials. And as for the one who is tested and bears it patiently, how excellent he is!"
حدثنا إبراهيم بن الحسن المصيصي حدثنا حجاج يعني ابن محمد حدثنا الليث بن سعد قال حدثني معاوية بن صالح أن عبد الرحمن بن جبير حدثه عن أبيه
ايم الله لقد سمعت رسول الله ﷺ يقول إن السعيد لمن جنب الفتن إن السعيد لمن جنب الفتن إن السعيد لمن جنب الفتن ولمن ابتلي فصبر فواها
[Its chain is sahih] Tabarani narrated it in Al-Kabir: 2/253, from the hadith of Muawiya bin Salih, through this same chain.