Sahl bin Saad reported,

When this verse was revealed, "And eat and drink until the white thread becomes distinct to you from the black thread" [Baqarah 2:187], a man who intended to fast would tie a black thread and a white thread to his legs, and he would continue eating and drinking until he could distinguish between them by sight.Then Allah revealed afterward, "of the dawn" [Baqarah 2:187], so they understood that what was meant was night and day.

Muslim 2535

Sahih

حدثني محمد بن سهل التميمي وأبو بكر بن إسحق قالا حدثنا ابن أبي مريم أخبرنا أبو غسان حدثني أبو حازم

عن سهل بن سعد رضي الله عنه قال

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

مسلم 2535صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Fasting
Chapter
Clarification that entering into fasting occurs at the rising of Fajr, and that one may eat and otherwise until Fajr rises, and clarification of the description of Fajr to which rulings are attached regarding entering into fasting, the beginning of the time for the morning prayer, and other matters
Numbering
Darussalam 2535
Muslim 2535