Two reports that get handed over badly

Both of these are sound and both are commonly delivered as an instruction to produce a feeling. Read what they actually say. The first describes an outcome for a believer rather than prescribing an emotion, and whether it can be asked of somebody in an episode with no capacity for pleasure is a question for a scholar and not for us. The second is about the first moment of a shock, which is a narrower claim than it usually gets used for.

Qur’an and Sunnah

Narrated Anas bin Malik:The Prophet (ﷺ) passed by a woman who was weeping beside a grave. He told her to fear Allah and be patient. She said to him, "Go away, for you have not been afflicted with a calamity like mine." And she did not recognize him. Then she was informed that he was the Prophet (ﷺ) . so she went to the house of the Prophet (ﷺ) and there she did not find any guard. Then she said to him, "I did not recognize you." He said, "Verily, the patience is at the first stroke of a calamity

Sahih al-Bukhari 1283graded sound, sahihaynfull report

Narrated Abu Sa`id:Some people from the Ansar asked Allah's Messenger (ﷺ) (to give them something) and he gave to everyone of them, who asked him, until all that he had was finished. When everything was finished and he had spent all that was in his hand, he said to them, '"(Know) that if I have any wealth, I will not withhold it from you (to keep for somebody else); And (know) that he who refrains from begging others (or doing prohibited deeds), Allah will make him contented and not in need of others; and he who remains patient, Allah will bestow patience upon him, and he who is satisfied with what he has, Allah will make him self-sufficient. And there is no gift better and vast (you may be given) than patience

Sahih al-Bukhari 6470graded sound, sahihaynfull report

Suhaib reported that Allah's Messenger (ﷺ) said:Strange are the ways of a believer for there is good in every affair of his and this is not the case with anyone else except in the case of a believer for if he has an occasion to feel delight, he thanks (God), thus there is a good for him in it, and if he gets into trouble and shows resignation (and endures it patiently), there is a good for him in it

Sahih Muslim 2999graded sound, sahihaynfull report