There are two kinds of Riya - Showing off-Ostentation ie pure ostentation and adulterated ostention. In pure ostentation "Riya" a man does a good deed only for worldly benefit. In Adulterated ostentation, a man does a good deed with the intention of reaping the benefits of the world as well as of the Hereafter.
Al-GhazaliDoes money upset the hearts of learned men? He answered, "men whose hearts are changed by money are not learned"
Al-GhazaliDo not dispute with anyone in any matter as far as possible. For in argumentation lies much harm and its evil is greater than its benefit.
Al-GhazaliNeglect not your time, nor use it haphazardly; on the contrary you should bring yourself to account. Structure your litanies and other practices during each day and night. This is how to bring about the spiritual blessing (baraka) in each period. If each of your breaths is a priceless jewel, Be not like the deceived fools who are joyous because each day their wealth increases while their life grows ever shorter.
Al-GhazaliDo not allow your heart to take pleasure with the praises of people, nor be saddened by their condemnation.
Al-GhazaliThe mere physical man is like the ant crawling on the paper, who observes black lettering and attributes its production to the pen and nothing more.
Al-GhazaliAnyone who refuses to marry is shrinking his farmwork, wasting the seed, and leaving idle the appropiate tools created by God; he sins against the purpose of creation and wisdom visible in the evidence of natural structure. The man who refuses to marry has severed a chain of being, a previously unbroken chain linking his own existence to that of Adam.
Al-Ghazali