Authenticity of Hadeeth “The happiness of the son of Adam (peace be upon him) depends on his being content with what Allah decrees”
Question

What is the status of the hadeeth “The happiness of the son of Adam depends on his being content with what Allah has decreed for him, and the misery of the son of Adam results from his failure to pray istikhaarah, and the misery of the son of Adam results from in his discontent with what Allah has decreed for him”? What is the status of the hadeeth: “The happiness of the son of Adam (peace be upon him) depends on his being content with what Allah has decreed for him, and the misery of the son of Adam (peace be upon him) results from his failure to pray istikharah (prayer for guidance in decision making), and the misery of the son of Adam (peace be upon him) results from his discontentment with what Allah has decreed for him”?
Praise be to Allah.This hadeeth was narrated by al-Tirmidhi, 2151.
It was classed as saheeh (authentic) by al-Hakim, 1/699, and al-Dhahabi agreed with him. It was classed as hasan (good) by al-Hafiz ibn Hajar in Fath al-Bari, 11/184.