Then why were the Hebrews at odds with the Sun worhippers? The Canaanites were Sun worshippers you know, as were the Egyptians.
*************
M*W: As I recall, the early Hebrews did practice sun worship when they allegedly moved northward out of Africa. The ancient Hebrews were also moon worshippers. Monotheism appeared in Egypt with Akhenaten IV (Moses) and his mandatory law of Aten Ra worship which, of course, is sun worship. See below:
"(Heb. shemesh), first mentioned along with the moon as the two great luminaries of heaven (Genesis 1:14-18). By their motions and influence they were intended to mark and divide times and seasons. The worship of the sun was one of the oldest forms of false religion (Job 31:26,27), and was common among the Egyptians and Chaldeans and other pagan nations. The Jews were warned against this form of idolatry (Deuteronomy 4:19; 17:3; Compare 2 Kings 23:11; Jeremiah 19:13).
http://www.englishatheist.org/bough/rationalist.shtml
Selected Bibliography:
Grant Allen, The Evolution of the Idea of God: An Inquiry into the Origins of Religion (New York: Henry Holt an)d Company, 1897).
David Forsyth, Psychology and Religion London 1935, p.97.
This hypothesis is ably presented in the following works:
C. F. Volney, The Ruins, or Meditation on the Revolutions of Empires and the Law of Nature trans. Joel Barlow (New York: Peter Eckler Press, 1890);
Charles F. Dupuis, The Origin of All Religious Worship (New Orleans: 1872);
Edward Carpenter, Pagan and Christian Creeds: Their Origin and Meaning (New York: Harcourt Brace and Company, 1920);
Gerald Massey, Pagan Christs; idem, Christianity and Mythology;
Arthur Drews; The Christ Myth (London: T. Fisher Unwin, 1910);
T.W. Doane; Bible Myths;
Rev. Dr. Richard B. Westbrook, The Eliminator and his The Bible—Whence and What (Philadelphia: J. B. Lippincott Co., 1890).
Frazer, Folk-Lore in the Old Testament, p. 29.
Sir Arthur Weigall, The Paganism in Our Christianity (New York and London, 1928), pp. 77–78.
L. Gordon Rylands, The Evolution of Christianity (London: Watts & Co., 1927).
J.M. Robertson, A Short History of Christianity, 2nd rev. ed. (London: Watts & Co., 1913), p.12.
McCabe, Joseph, The Story of Religious Controversy (Boston: The Stratford Co., Publishers, 1929).
Weigall, The Paganism in Our Christianity, p. 127.
Higgins, Anacalypsis, vol. 2, P. 105.
Professor Arthur M. Harding, Astronomy (Garden City, NY, 1935).
E. A. Wallis Budge, The Book of the Dead, The Hieroglyphic Transcript of the Papyrus of ANI (New Hyde Park, NY: University Books, Inc., 1960).
Sir W. M. Flinders Petrie, Ancient Egyptians, vol, 11 of Herbert Spencer's Descriptive Sociology, p. 41.
Sir W. M. Flinders Petrie, The Gods of Ancient Egypt, in Hammerton's Wonders of the Past (New York, 1937), p. 667.
Ibid., p. 678.
Note that many of the above references were written a long time ago and by christian scholars. This list is not comprehensive. I suggest reading Ahmed Osman's works.