One must only perform prayers in humility to the Lord of the worlds; therefore, if one performs prayers ostentatiously – i.e. to show off to people – his prayer is invalid, irrespective of whether he does so solely for people or partly for Allah the Exalted and partly for people.