It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) came to the Messenger of Allah (peace and blessings be upon him) and said: "O Messenger of Allah! I am ruined." He (peace and blessings be upon him) said: "What has ruined you?" He said: "Last night I turned my saddle around." When he (peace and blessings be upon him) gave him no answer, this verse was revealed to the Messenger of Allah (peace and blessings be upon him): "Your wives are a tilth for you, so come to your tilth however you wish." (That is:) "Come from the front or from behind, but avoid the anus (dubur), and avoid (the state of) menstruation as well."
Imam al-Tirmidhi (may Allah have mercy on him) narrated it through Abd bin Humayd from Hasan bin Musa, and said: "This hadith is hasan gharib."
And Imam al-Nasa'i (may Allah have mercy on him) narrated it from both Ali bin Ma'bad bin Nuh al-Baghdadi and Ahmad bin al-Khalil, (both) from Yunus bin Muhammad.
And Abu Hatim al-Busti (may Allah have mercy on him) narrated something similar in meaning through Abu Ya'la al-Mawsili, from Abu Khaythamah, from Yunus bin Muhammad, from Ya'qub al-Qummi.