Very good advice. This is also what is known as "Radhaa bil-Qadhaa" (Being pleased with the Decree of Allaah Ta`aalaa, regardless of what it may be). It is a very high stage to reach. If a person truly possesses it he or she will be a Wali of Allaah Ta`aalaa, In Shaa Allaah.