Narada provokes the three consorts into sending their husbands to test Anasuya's virtue; she turns them into infants and nurses them; the consorts beg for their husbands and she asks for sons — one three-headed Dattatreya, or three sons.
Narada, asked to judge which of the three goddesses is most virtuous, names a mortal instead — Anasuya, who he says could even soften beans made of iron. The offended goddesses send Brahma, Vishnu and Shiva to her hermitage disguised as young ascetics while her husband Atri is away. They demand to be fed by her unclothed; she sprinkles water on them, they shrink into infants, and she feeds them as a mother would. When the goddesses arrive to plead, she restores the gods and asks for them as her sons; in this line of telling the boon becomes a single child, Dattatreya, three-headed and six-armed, carrying all three natures. Her hermitage on the Mandakini at Chitrakoot is the one Rama and Sita visit.
What is different here:
Base telling: one combined son. The 'iron beans' detail is Wikipedia's only.
The Bhagavata does not tell the test at all. It records that Atri prayed to the three gods for offspring and that Anasuya bore three sons, each a partial presence of one god: Soma the moon from Brahma, Dattatreya from Vishnu, and Durvasa from Shiva. Dattatreya is therefore Vishnu's portion and the three gods stay distinct.
What is different here:
No nursing test; three separate sons rather than one three-headed child; Datta is specifically Vishnu's.
In the Nath telling retold by Pattanaik, the three gods arrive as mendicants and ask to be fed by a naked hostess; the moment she undresses they become babies at her breast. Saraswati, Lakshmi and Gauri ask forgiveness and offer a boon, and she asks for a son with the qualities of all three. That son, Datta, becomes the first guru of the Nath yogis, the one who had no human teacher but learned from twenty-four teachers in nature — earth, sky, bee, spider, even a courtesan — and who kept dogs beside him against orthodox distaste. Attribute the framing to Pattanaik.
What is different here:
Same test, but Datta's meaning is the guru without a guru; the boon is phrased as one son with all three natures.
West India · Mahur, Narsobawadi, Ganagapur, PithapuramSmarta
The living Datta tradition of the Deccan knows the birth through the Guru Charitra, a sixteenth-century Marathi work that follows two later avatars of Datta, Sripada Sri Vallabha of Pithapuram and Narasimha Saraswati, whose monastery at Ganagapur and twelve years at Narsobawadi made those places the tradition's centres, with sandals rather than images as the objects of worship. Mahur in Nanded district is held to be Datta's birthplace, with temples to Renuka, Datta and Anasuya, and a daily circuit in which Datta bathes at Mahur, begs at Kolhapur, eats at Panchaleshwar and sleeps again at Mahur.
What is different here:
Adds the regional afterlife of the story: birthplace, later avatars and pilgrimage centres; the single three-headed Datta is assumed.