When Allah revealed "And do not approach the orphan's property except in the way that is best" and the verse "Indeed, those who consume the property of orphans unjustly...", anyone who had an orphan in his care set aside the orphan's food from his own food and the orphan's drink from his own drink. He would put aside whatever was left over from the orphan's food and keep it for him until he ate it or it spoiled. This became difficult for them, so they mentioned it to the Messenger of Allah ﷺ. Then Allah
revealed "They ask you about orphans. Say, 'Improvement for them is best. And if you mix your affairs with theirs, they are your brothers'". So they mixed their food with his and their drink with his.
حدثنا عثمان بن أبي شيبة حدثنا جرير عن عطاء عن سعيد بن جبير
لما أنزل الله عز وجل {ولا تقربوا مال اليتيم إلا بالتي هي أحسن} و {إن الذين يأكلون أموال اليتامى ظلما} الآية انطلق من كان عنده يتيم فعزل طعامه من طعامه وشرابه من شرابه فجعل يفضل من طعامه فيحبس له حتى يأكله أو يفسد فاشتد ذلك عليهم فذكروا ذلك لرسول الله ﷺ فأنزل الله عز وجل {ويسألونك عن اليتامى قل إصلاح لهم خير وإن تخالطوهم فإخوانكم} فخلطوا طعامهم بطعامه وشرابهم بشرابه
[Its chain of transmission is daif] Nasai narrated it, in the Book of Bequests, chapter on what the executor may take from the orphan's property when he manages it on his behalf, hadith no. 3699, from the hadith of Ata bin Saaib, through this same chain. Hakim graded it sahih in 2/278, 279, and Dhahabi agreed with him. Ata's memory became confused later in life.