I asked Ayesha, "What did the Messenger of Allah ﷺ do before going out?"She replied, "He would pray two rak'ahs, then go out."
حدثنا أسود بن عامر قال حدثنا إسرائيل
قلت لعائشة ما كان يصنع رسول الله ﷺ قبل أن يخرج قالت كان يصلي الركعتين ثم يخرج
Its chain of transmission is sahih, and it has already been mentioned at 24431.