Abu Hurairah reported,

The Prophet ﷺ said, "A prophet from among the prophets went out on a military expedition and said to his people, 'Let no man follow me who has married a woman and intends to consummate the marriage with her but has not yet done so.'"

Bukhari 5157

Sahih

حدثنا محمد بن العلاء حدثنا عبد الله بن المبارك عن معمر عن همام

عن أبي هريرة رضي الله عنه

عن النبي ﷺ قال غزا نبي من الأنبياء فقال لقومه لا يتبعني رجل ملك بضع امرأة وهو يريد أن يبني بها ولم يبن بها

البخاري 5157صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Marriage
Chapter
Those who preferred building before going on expeditions
Numbering
Darussalam 5157
Bukhari 5157