Is it permissible for a woman who has become pure before the end of forty days of confinement to perform different acts of worship? and is it lawful for her husband to have sex with her?
Once postpartum bleeding ceases and she is certain that it won`t happen again, she becomes pure, and so she should perform Ghusl (ritual bath), pray, and fast. She can also have sex with her husband even before the end of (40) days because the minimum of postpartum bleeding is a moment, and the maximum is (60) days. However, the postpartum bleeding for the majority of women is (40) days, but this does not apply to rest of them.
What is the ruling on a person in a state of major impurity (junub) walking or eating before performing the ritual bath?
It is from the Sunnah for a Muslim to hasten to perform the ritual bath for major impurity. However, if he delays it, he does not sin provided he does not miss the prayer. It is permissible for the junub to walk, eat, drink, and sleep. It is recommended for him to perform ablution before these actions to reduce the state of impurity, although the best is for him to perform the ritual bath. And Allah the Almighty knows best.
Can I start fasting based on the moon sighting of another country?
You must follow the moon sighting of the country you are in.
What is the Sharia basis of the Udhiyah?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
The Sharia basis of the Udhiyah (sacrificial offering) is firmly established through the Quran, the Sunnah, and the Consensus (Ijma') of the Muslims:
1. Evidence from the Holy Quran
Allah the Exalted says {what means}: "And the camels and cattle We have appointed for you as among the symbols of Allah; for you therein is good." [Al-Hajj/36]. He also says {what means}: "So pray to your Lord and sacrifice [to Him alone]" [Al-Kawthar/2]. According to the most well-known scholarly interpretations of this verse, "prayer" refers to the Eid prayer, and "sacrifice" refers to the slaughtering of the Udhiyah.
2. Evidence from the Sunnah
Al-Bara' bin 'Azib (may Allah be pleased with him) narrated that the Prophet ﷺ said: "The first thing we start with on this day of ours is to pray, then we return and sacrifice. Whoever does that has followed our Sunnah, and whoever slaughters before [the prayer], it is merely meat he has provided for his family; it is not part of the ritual sacrifice in any way" [Reported by Bukhari & Muslim].
Anas (may Allah be pleased with him) narrated: "The Prophet ﷺ sacrificed two white rams with horns. He slaughtered them with his own hand, mentioned the name of Allah (Tasmiyah), and said the Takbir" [Reported by Bukhari & Muslim].
3. Evidence from Scholarly Consensus (Ijma')
The Muslims have reached a unanimous consensus on the Sharia basis of the Udhiyah, and no one among the scholars has disagreed with this. [Al-Sherbini, Mughni al-Muhtaj, Vol.6/P.122].And Allah the Exalted knows best.