Mishkat al-Masabih
Mishkat al-Masabih 3233
وَعَنْ أَبِي قِلَابَةَ عَنْ أَنَسٍ قَالَ: مِنَ السُّنَّةِ إِذَا تَزَوَّجَ الرَّجُلُ الْبِكْرَ عَلَى الثَّيِّبِ أَقَامَ عِنْدهَا سبعا وَقسم إِذا تَزَوَّجَ الثَّيِّبَ أَقَامَ عِنْدَهَا ثَلَاثًا ثُمَّ قَسَمَ. قَالَ أَبُو قلَابَة: وَلَو شِئْت لَقلت: إِن أَنَسًا رَفْعَهُ إِلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ
Abu Qilabah reported from Anas, who said: ‘It is sunnah that when a man marries a virgin while already married to a previously married woman, he stays with the virgin for seven nights, then divides his time. When he marries a previously married woman, he stays with her for three nights, then divides his time.’ Abu Qilabah said: ‘If I wished, I could say that Anas attributed it to the Prophet (peace and blessings be upon him).’