When the Prophet ﷺ was at the deathbed of his young son Ibrahim, peace be upon him, his eyes were flowing with tears. When he was asked about it, he said it was mercy, and: 'The eye weeps, the heart grieves, and we say nothing except what pleases our Lord. We are saddened by your parting, Ibrahim.' So tears are not a lack of faith. What Islam discourages is despair and protest against Allah, not sorrow. The advice 'patience is at the first strike' is a comfort, not a rebuke: the early shock is the hardest part, and what you do then matters most.
The Quran gives the believers a statement for such moments: 'Indeed we belong to Allah and to Him we are returning', and promises blessings and mercy from their Lord to those who say it with patience. The Prophet ﷺ taught a supplication in a hadith in Sahih Muslim, asking Allah for reward in the calamity and something better in its place. Umm Salama, who said it when her husband Abu Salama died, was later married to the Prophet ﷺ. He also reported that Allah says there is no reward for His believing servant, when He takes someone dear to him and he is patient and hopeful of reward, other than Paradise.
Meaning after loss is found partly in the connection that remains. The Prophet ﷺ taught that when a person dies their deeds come to an end except three: lasting charity, knowledge that benefits people, and a righteous child who prays for them, so prayer for them, and lasting good done with them in mind, are ways to stay connected. The Quran also promises that believers will be joined in Paradise by the families who followed them in faith. Grief is long, and Muslims are encouraged to share it, to eat, rest and ask for support, and not to carry it alone.