Lady Aisha Siddiqa (may Allah be pleased with her) narrates: The Prophet Muhammad (peace be upon him) used to kiss one of his noble wives while he was fasting, then she smiled. (Imam Ibn Hibban, may Allah have mercy on him, says:): The Prophet Muhammad (peace be upon him) had the greatest control over his desires. Even so, he used to kiss his wives while fasting. Through this, the intention is to teach that whoever has control over his desires, it is permissible for him to do such an act while fasting. However, when his wives were fasting, the Prophet Muhammad (peace be upon him) would refrain from such acts. Because he knew that for women, in such a situation, it is difficult to control themselves. So the Prophet Muhammad (peace be upon him) would abstain from this act and let their condition remain. When they were in that state, in this way, there remains no contradiction or difference between the two narrations.
Hadith Referenceصحیح ابن حبان / كتاب الصوم / 3547
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح: ق - انظر (3531). تنبيه!! رقم (3531) = (3539) من «طبعة المؤسسة». - مدخل بيانات الشاملة -.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط الشيخين