A shaykh narrates from his father: Sayyiduna Jarir bin Abdullah (may Allah be pleased with him) came to Sayyiduna Umar (may Allah be pleased with him) and complained to him about the trouble he faced from women. Sayyiduna Umar (may Allah be pleased with him) said: We feel the same, so much so that when I want to go out for some need, it is said to me: You only go to look at the girls of such-and-such tribe. At that, Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) said to him: "Has it not reached you that Sayyiduna Ibrahim (peace be upon him) complained to Allah, the Mighty and Majestic, about the sharpness of Sayyidah Sarah's temper, and he was told: She was created from a rib, so live with her as she is, as long as you do not see in her anything disgraceful in her religion." At this, Sayyiduna Umar (may Allah be pleased with him) said to him: "Allah has filled the space between your ribs with abundant knowledge."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9650