Ibaadat and Good actions

Showing loyalty by remaining obedient to Allah Ta'ala

Q: I prayed to Allah that I really wanted something and I made I’m not sure like intention I guess or I said that like I’ll be on my kinda best behaviour or just stay away from sins etc. because I wanted that thing. 

Is this permissible to do? To stay away from sinning so that Allah grants you your dua and gives you what u want? Or does abstaining from sin and doing good have to be solely for attaining Jannah? 

Is what I’m doing counting as doing it for Allah’s sake because I feel unsure and don’t want to do it for the sake of gaining something and get no rewards? How can I make it so that I get rewarded and get what I want in regards to a worldly gain I want?

Doing things with ikhlaas (sincerity)

Q:

1. Does pleasure of our Prophet (SallAllahu 'Alayhi Wa Sallam), the pleasure of The Prophets ('Alayhim-us-Salaam), the pleasure of the Angels ('Alayhim-us-Salaam), and the pleasure of The Sahabaah (RaziyAllahu 'Anhum) count as part of Ikhlaas?

2. If someone does dhikr in a majlis together with other people so that Allah (SubhanaHu Wa Ta'alaa) can mention them in His majlis of Angels ('Alayhim-is-Salaam), does this ruin their Ikhlaas?

3. If a person starts Namaz with a weak but conscious intention that it is for Allah (SubhanaHu Wa Ta'alaa) but their heart feels weak towards praise and is affected by criticism if someone criticises their Namaz, does this mean he had not complete Ikhlaas? How can the heart be unaffected by praise and criticism?