Ayesha reported,

The Messenger of Allah ﷺ and Abu Bakr hired a man from the tribe of Banu Dil as an expert guide, though he followed the religion of the disbelievers of Quraysh. They handed over their two mounts to him and arranged to meet him at the Cave of Thawr after three nights, where he was to bring their mounts on the morning of the third day.

Bukhari 2264

Sahih

حدثنا يحيى بن بكير حدثنا الليث عن عقيل قال ابن شهاب فأخبرني عروة بن الزبير أن

عائشة رضي الله عنها زوج النبي ﷺ قالت

واستأجر رسول الله ﷺ وأبو بكر رجلا من بني الديل هاديا خريتا وهو على دين كفار قريش فدفعا إليه راحلتيهما وواعداه غار ثور بعد ثلاث ليال براحلتيهما صبح ثلاث

البخاري 2264صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Leasing
Chapter
If one hires a worker to work for him after three days, or after a month, or after a year it is permissible, and they are bound by the condition they stipulated when the term arrives
Numbering
Darussalam 2264
Bukhari 2264