From Sahih Bukhari (Hadith 1927):
Narrated `Aisha:The Prophet (ﷺ) used to kiss and embrace (his wives) while he was fasting, and he had more power to control his desires than any of you. Said Jabir, "The person who gets discharge after casting a look (on his wife) should complete his fast
Reference: Bukhari 1927