We need to think before we speak if we would like contentment. Whatever you want to say, think of the best way of saying it and then say it.
And tell My servants to say that which is best. Indeed, Satan induces [dissension] among them. Indeed Satan is ever, to mankind, a clear enemy.(17:53)
Shaitan wants to seize any opportunity, to split people, to cause friction, to cause problems. if you are careful of what you say and how you say it you will definitely be able to be much more content than you are.
The supplication from surah kahf
[Mention] when the youths retreated to the cave and said, “Our Lord, grant us from Yourself mercy and prepare for us from our affair right guidance.” (18:10)
so the point to learn here is if we would like contentment from Allah subhanahu wa ta’ala make sure you’re in a good environment, have good friends have decent people around you, worship allah in a beautiful way.
And never say of anything, “Indeed, I will do that tomorrow,”
Except [when adding], “If Allah wills.” And remember your Lord when you forget [it] and say, “Perhaps my Lord will guide me to what is nearer than this to right conduct.” [18:23 & 24]
Whenever you are planning to do something tomorrow or a little bit later on or sometime in the future, remember it is all only possible if Allah wants it to happen. Therefore you must say insha’Allah. This is why we say when you plan something and it happens your way you say alhamdulillah, all praise is due to Allah when it does not happen your way I usually say Alhamdulillah twice thank Allah even more because now it’s happening exactly the way He wanted it and He knows what is better for you. There is another term that we need to actually add to the praise of Allah Subhanahu WA learn to relate it to Allah, you make dua for Baraka and you related to Allah Masha Allah, tabarak Allah or la quwata illa billah. So if if you know that they’re only going to happen if Allah wants it to happen then you will not be depressed, you will not be sad.
And why did you, when you entered your garden, not say, ‘What Allah willed [has occurred]; there is no power except in Allah ‘? Although you see me less than you in wealth and children, (18:39)
At the end of surah al-Kahf there is a beautiful verse number 110 Allah Subhanahu WA Ta’ala speaks about what to do: you will achieve contentment.
إِذْ أَوَى الْفِتْيَةُ إِلَى الْكَهْفِ فَقَالُوا رَبَّنَا آتِنَا مِن لَّدُنكَ رَحْمَةً وَهَيِّئْ لَنَا مِنْ أَمْرِنَا رَشَدًا – 18:10
Ith awa alfityatu ila alkahfi faqaloo rabbana atina min ladunka rahmatan wahayyi/ lana min amrina rashadan
Say, “I am only a man like you, to whom has been revealed that your god is one God. So whoever would hope for the meeting with his Lord – let him do righteous work and not associate in the worship of his Lord anyone.” (18:110)
So if you want happiness and contentment in this world success in the next you need to make sure you do two things. Don’t associate partners with Allah and any act of worship make sure that it was taught by the Prophet Muhammad peace be upon him. You will never go wrong. may Allah Subhanahu WA Ta’ala grant us success.
Surat maryam regarding those who left their prayer and Salah Allah
But there came after them successors who neglected prayer and pursued desires; so they are going to meet evil – (19:59)
The idea is to be encouraged to say that we must fulfil our Salah and don’t just follow your desires whims and fancies in transgression of Allah subhanahu wata’ala.