Does undergoing an endoscopy during the day in Ramadan affect the validity of fasting?
Undergoing an endoscopic procedure during the day in Ramadan—whether through the mouth, nose, front private part, or back private part—invalidates the fast.
Whoever undergoes such a procedure must refrain from eating and drinking for the rest of the day out of respect for the sacred month and make up for that day after Ramadan.
What is the ruling on the intention of fasting, where is its place, and when is its time?
The intention is a pillar of acts of worship; it is essential, and worship is not valid without it.
Its place is in the heart, and verbalizing it is recommended so that the tongue reminds the heart. Its meaning is to be determined to abstain from nullifiers of fasting during the upcoming day with the intention of worship and obedience to Allah Almighty. This meaning is naturally present in every Muslim on every night of Ramadan, so there is no need for obsessive doubts. If one says, "I intend to fast tomorrow for the sake of Allah," it removes any doubts.
Its time is from after sunset until before the true dawn.
What is the ruling on sacrificing a castrated animal or one with a missing tail?
Praise be to Allah, and peace and blessings be upon our master, the Messenger of Allah.
It is permissible to sacrifice a castrated sheep; as it has been established that the Prophet (peace be upon him) sacrificed:
"...two large, fat, horned, white-and-black, castrated rams (Mawju'ayn—meaning having crushed testicles)." [Narrated by Ibn Majah in his Sunan].
It is not permissible to sacrifice an animal that is missing its tail, rump, or udder due to being cut off. This is in contrast to an animal that was naturally born without a tail, rump, or udder; such an animal is valid for sacrifice. And Allah the Almighty knows best.
When is Istikharah (guidance prayer) Du`a offered, before Tasleem (saying asalamu alikum warahmatu allah wa barakatuh to end the prayer), or after it?
It is offered after Tasleem.