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.
حدثنا سعيد بن أبي مريم حدثنا ابن أبي حازم عن أبيه عن سهل بن سعد ح حدثني سعيد بن أبي مريم حدثنا أبو غسان محمد بن مطرف قال حدثني أبو حازم
أنزلت {وكلوا واشربوا حتى يتبين لكم الخيط الأبيض من الخيط الأسود} ولم ينزل {من الفجر} فكان رجال إذا أرادوا الصوم ربط أحدهم في رجله الخيط الأبيض والخيط الأسود ولم يزل يأكل حتى يتبين له رؤيتهما فأنزل الله بعد {من الفجر} فعلموا أنه إنما يعني الليل والنهار