Ovid
The Metamorphoses of Ovid, Book IV (Fable. 9)
Perseus, the son of Jupiter and Danaë, having killed Medusa, carries her head into Africa, where the blood that runs from it produces serpents. Atlas, king of that country, terrified at the remembrance of an oracle, which had foretold that his golden fruit should be taken by one of the sons of Jupiter, not only orders him to depart, but even resorts to violence to drive him away, on which Perseus shows him the Gorgon’s head, and changes him into a mountain.

But yet their grandson, Bacchus gave them both a great consolation, under this change of form; whom India, subdued by him, worshipped as a God, and whom Achaia honored with erected temples. Acrisius the son of Abas,74 descended of the same race,75 alone remained, to drive him from the walls of the Argive city, and to bear arms against the God, and to believe him not to be the offspring of Jove. Neither did he think Perseus to be the offspring of Jupiter, whom Danaë had conceived in a shower of gold; but soon (so great is the power of truth) Acrisius was sorry, both that he had insulted the God, and that he had not acknowledged his grandson. The one was now placed in heaven, while the other, bearing the memorable spoil of the viperous monster, cut the yielding air with hissing wings; and while the conqueror was hovering over the Libyan sands, bloody drops, from the Gorgon’s head, fell down, upon receiving which, the ground quickened them into various serpents. For this cause, that region is filled and infested with snakes.

Carried thence, by the fitful winds, through boundless space, he is borne now here, now there, just like a watery cloud, and, from the lofty sky, looks down upon the earth, removed afar; and he flies over the whole world. Three times he saw the cold Bears, thrice did he see the claws of the Crab; ofttimes he was borne to the West, many a time to the East. And now, the day declining, afraid to trust himself to the night, he stopped in the Western part of the world, in the kingdom of Atlas; and there he sought a little rest, until Lucifer should usher forth the fires of Aurora, Aurora, the chariot of the day. Here was Atlas, the son of Iapetus, surpassing all men in the vastness of his body. Under this king was the extremity of the earth, and the sea which holds its waters under the panting horses of the Sun, and receives the wearied chariot. For him, a thousand flocks, and as many herds, wandered over the pastures, and no neighboring places disturbed the land. Leaves of the trees, shining with radiant gold, covered branches of gold, and apples of gold. “My friend,” said Perseus to him, “if the glory of a noble race influences thee, Jupiter is the author of my descent; or if thou art an admirer of exploits, thou wilt admire mine. I beg of thee hospitality, and a resting place.” The other was mindful of an ancient oracle. The Parnassian Themis had given this response: “A time will come, Atlas, when thy tree shall be stripped of its gold, and a son of Jove shall have the honor of the prize.” Dreading this, Atlas had enclosed his orchard with solid walls, and had given it to be kept by a huge dragon;76 and expelled all strangers from his territories. To Perseus, too, he says, “Far hence begone, lest the glory of the exploits, to which thou falsely pretendest, and Jupiter as well, be far from protecting thee.” He adds violence as well to his threats, and tries to drive him from his doors, as he hesitates and mingles resolute words with persuasive ones. Inferior in strength (for who could be a match for Atlas in strength?), he says “Since my friendship is of so little value to thee, accept this present;” and then, turning his face away, he exposes on the left side the horrible features of Medusa. Atlas, great as he is, becomes a mountain. Now his beard and his hair are changed into woods; his shoulders and his hands become mountain ridges, and what was formerly his head, is the summit on the top of the mountain. His bones become stones; then, enlarged on every side, he grows to an immense height (so you willed it, ye Gods), and the whole heaven, with so many stars, rests upon him.

Footnotes:

74. Son of Abas.]—Ver. 608. Acrisius was the son of Abas, king of Argos. He was the father of Danaë, by whom Jupiter was the father of Perseus.

75. Of the same race.]—Ver. 607. Some suppose that by this it is meant that as Belus, the father of Abas, and grandfather of Acrisius, was the son of Jupiter, who was also the father of Bacchus, the latter and Acrisius were consequently related.

76. A huge dragon.]—Ver. 647. The name of the dragon was Ladon.