The Intentions in Actions should be to Please Allaah.
It is reported from al-Qaadhi Abu Yoosuf (may Allaah have mercy on him):
"O people, intend to please Allaah in your actions, for I have never sat in a gathering intending to humble myself except that I did not rise from it until I had surpassed them; and I have never sat in a gathering intending to rise above them except that I did not rise from it until I was disgraced."
Reported in Akhbar al-Qudha' (3/258) of Wakee' al-Qaadhi