Mujahid (may Allah have mercy on him) narrates: "I recited the Qur'an to Sayyiduna Ibn Abbas (may Allah be pleased with them both) from its beginning to its end, stopping him at every verse and asking him about it, until I reached this verse: 'Your wives are a tilth for you, so come to your tilth however you wish.' Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: 'This tribe of Quraysh in Makkah would uncover women and spread them out, and take pleasure in them from the front and from behind. When they came to Madinah and married among the Ansar, and wanted to do the same with them, the Ansari women objected to it and said: "This is something in which we were never approached." The matter spread until it reached the Prophet (peace and blessings be upon him). Then Allah, the Mighty and Majestic, revealed this verse concerning it: "Your wives are a tilth for you, so come to your tilth however you wish." That is, if you wish, with the woman facing forward, and if you wish, with her kneeling (that is, from behind). What is meant by this is only the tilth, that is, the place where the child is born, as if He said: "Come to the tilth from whichever side you wish."' Then Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: 'Sayyiduna Ibn Umar (may Allah be pleased with them both) said that (what is meant is going into) the woman's anus; Sayyiduna Ibn Umar (may Allah be pleased with them both) was mistaken, may Allah forgive him; the matter was really as (I have described).'"
Imam Abu Dawud (may Allah have mercy on him) narrated it with a similar meaning through Abd al-Aziz bin Yahya from Muhammad bin Salamah.
Related hadith on this topic