What is the ruling on invoking the sun?

Question 265: When a person removes a tooth, he throws it into the sun and says, “Oh Sun! This is the tooth of a donkey, give me the tooth of a deer!”

Answer: Invoking the sun and appealing to it are kinds of major Shirk (associating others with Allaah in His Divinity or worship that takes the Muslim out of Islaam). What is mentioned in the question is a type of such major Shirk... read more here.