Is it permissible to participate in an Udhiyah?
Praise be to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Regarding the sacrificial offering (Udhiyah), if it is a sheep or a goat, it only avails for one person. However, if it is a cow or a camel, it avails for seven people. It is permissible for the seven participants to have different intentions; for example, some may intend the sacrifice (Udhiyah), some the ’Aqiqah (sacrifice for a newborn), and others may simply intend to obtain meat.
It is stated in Hashiyat Qalyubi ‘ala Sharh al-Mahalli (Vol.4/P.256) and in Bushra al-Karim (p. 706):
"If one slaughters a camel or a cow on behalf of seven... it is permissible. Likewise, it is permissible if some of them intend their seventh for meat, and others intend their seventh for ’Aqiqah." And Allah the Almighty knows best.
Is a woman`s prayer considered invalid if non-Mahrams (marriageable men) saw her offering it?
A woman`s prayer isn`t invalidated if non-Mahrams saw her offering it, but she had better pray in isolation.
Which takes precedence: the 'aqīqah or the uḍḥiyyah?
All praise is due to Allah, and may peace and blessings be upon our Master, the Messenger of Allah.
The 'aqīqah is an act of worship through which a servant draws closer to Allah the Almighty in gratitude for the blessing of a newborn child. It is a confirmed Sunnah for those who are financially capable, and Allah does not burden any soul beyond what it can bear.
However, the uḍḥiyyah takes precedence, as it is a confirmed Sunnah established from the Prophet ﷺ through stronger and more numerous narrations — indeed, the Ḥanafī scholars hold it to be obligatory. Furthermore, its time is narrow and limited, expiring with the passing of the days of Eid, whereas the 'aqīqah may be delayed until one becomes financially capable of performing it.
And Allah Almighty knows best.
Is there a solution to put an end to thinking of worries during prayer?
Firstly, make ablution after the time for prayer begins and busy yourself with remembering Allah, The Exalted, before the iqaamah (start of prayer).In order to become humbly submissive during prayer, you must perform prayer in congregation. After the prayer ends, stay in your place and read the post-prayer remembrances (Adhkaar) and make supplication to Allah, The Exalted.