Sahl bin Saad reported,

The verse was revealed as "And eat and drink until the white thread becomes distinct to you from the black thread" [Baqarah 2:187], and the words "of dawn" had not yet been sent down. So when men wanted to fast, one of them would tie a white thread and a black thread to his leg, and he would go on eating until he could tell them apart by sight. Then Allah revealed afterward "of dawn" [Baqarah 2:187], and they understood that what was meant was only night and day.

Bukhari 1917

Sahih

حدثنا سعيد بن أبي مريم حدثنا ابن أبي حازم عن أبيه عن سهل بن سعد ح حدثني سعيد بن أبي مريم حدثنا أبو غسان محمد بن مطرف قال حدثني أبو حازم

عن سهل بن سعد قال

أنزلت {وكلوا واشربوا حتى يتبين لكم الخيط الأبيض من الخيط الأسود} ولم ينزل {من الفجر} فكان رجال إذا أرادوا الصوم ربط أحدهم في رجله الخيط الأبيض والخيط الأسود ولم يزل يأكل حتى يتبين له رؤيتهما فأنزل الله بعد {من الفجر} فعلموا أنه إنما يعني الليل والنهار

البخاري 1917صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Fasting
Chapter
Allah's saying, "And eat and drink until the white thread of dawn becomes distinct to you from the black thread of Fajr. Then complete the fast until the night"
Numbering
Darussalam 1917
Bukhari 1917