Bismillah
How do you know if Allah is pleased with you? Only Allah knows but they are signs....
1. Look at what Allah keeps you busy with. If you are busy with things that are pleasing to Him, then this is a good sign He is pleased with you.
Evaluate yourself -- Where do you spent most of your time daily? If your solat is on time, regularly perform solat jema'ah at the masjid, learning Quran, seeking beneficial knowledge, ...this is a good sign that Allah is pleased with you.
If Allah make it easy for you to perform an ibadah (reading Quran, fasting, giving charity, qiyamullail,...), this is a major sign that Allah is pleased with you.
2. Ask yourself, "Am I pleased with Allah ... His decree upon me?" If you are, then it is a sign that Allah is pleased with you.
رَّضِىَ ٱللَّهُ عَنْهُمْ وَرَضُوا۟ عَنْهُ
Allah being pleased with them, and they with Him. (Al Ma'ida 5:119)
When you are happy with hardships the same way you are happy with blessings, that means you are pleased with Allah.
3. Check your relationship with your parents (righteous, Godfearing parents). If they are pleased with you, that is a great sign that Allah is pleased with you.
Allah says (interpretation of the meaning):
“Worship Allah and join none with Him (in worship); and do good to parents…”
“The pleasure of the Lord is in the pleasure of one’s parents and the anger of the Lord is in the anger of one’s parents, and the anger of Allah is in the anger of one's parents.”
This applies so long as the parent is not drifting away from the path of piety, otherwise pleasing the Lord is done by going against the parent’s orders. This is a stern warning from which it may be understood that disobeying one's parents is a major sin
4. If you are a righteous person and people honor and respect you, that is a great sign Allah is pleased with you.
Abu Hurairah reported: The Messenger of Allah, peace and blessings be upon him, said, “When Allah loves a servant, He calls Jibril and he says: Verily, I love this person so you should love him. Then Jibril loves him and makes an announcement in the heavens, saying: Allah loves this person and you should love him. Thus, the dwellers of the heavens love him and he is honored on the earth.”
May Allah be pleased with me and you, our parents, our children and those we love and those who love us. Aameen.