Where did prophet Muhammad PBUH and Abu Bakar take shelter before proceeding to Madina?

Where did prophet Muhammad PBUH and Abu Bakar take shelter before proceeding to Madina?

رسول اللہ صلی اللہ علیہ وسلم اور ابوبکر نے مدینہ جانے سے پہلے کہاں پناہ لی؟
Explanation

During the migration from Makkah to Medina, the Holy Prophet (PBUH) and Hazrat Abu Bakar Siddique (R.A) took shelter in the Cave of Soor

On September 24, 622, the prophet Muhammad completes his Hegira, or “flight,” from Mecca to Medina to escape persecution.