السنن الكبرى للبيهقي·كتاب النفقات
Chapter: When parents separate while living in the same town, the mother has more right to her children while they are young as long as she does not remarry; when one of them reaches seven or eight years and has understanding, he is given the choice between his father and mother and stays with whichever he chooses
باب: الأبوين إذا افترقا وهما في قرية واحدة، فالأم أحق بولدها ما لم تتزوج، وكانوا صغارا، فإذا بلغ أحدهم سبع أو ثمان سنين وهو يعقل خير بين أبيه وأمه، وكان عند أيهما اختار