[Machine] The Messenger of Allah ﷺ left from Medina to Mecca without fearing anyone except Allah, so he prayed two rak'ahs until he left.
«خَرَجَ رَسُولُ اللهِ ﷺ مِنَ الْمَدِينَةِ إِلَى مَكَّةَ لَا يَخَافُ إِلَّا اللهَ فَصَلِّي رَكْعَتَيْنِ حَتَّى خَرَجَ»