Peace
The first tool to attain patience is to remember the never changed Allah's law with humans
Holy Quran 90:4 Verily We have created humans into toil and struggle.
we , whatever supposed means of comfort and happiness ,exposed to struggle ,hardships if not physical then internal !!
that is the law of Allah and would never be changed...
but again hardships is not all day,night long...
Holy Quran 94:5 So, verily, with every difficulty, there is relief:
realising the previous facts and the nature of life God destined us for ,would be the first step to attain patience..
Then remember,
Holy Quran [4:19]
it may be that ye dislike a thing, and Allah brings about through it a great deal of good.
Then remember those who have worse problems in life than you and thank Allah ....
Then try,
To forget the trouble as much as you can by shifting your thoughts to something else,by avoiding being alone as much as you can..
then avoid much complaint to people of what troubled you and instead take the means to get over it ..
and remember always
Holy Quran 2:186 When My servants ask thee concerning Me, I am indeed close (to them): I listen to the prayer of every suppliant when he calleth on Me: Let them also, with a will, Listen to My call, and believe in Me: That they may walk in the right way.
May Allah grant me and all Muslims the patience...Ameen