Jami at-Tirmidhi 2369: Seeking Counsel in Important Matters and Prayer for Guidance (Istikhara)
Hazrat Abu Hurairah (ra) relates that the Messenger of Allah (saw) said to Abul-Haitham bin Tayyihan: “Do you have a servant?” He submitted: “No.” The Prophet (saw) said: “When a captive comes to me, come.” Two captives came to the Prophet (saw), and at that time Abul-Haitham presented himself before the Holy Prophet (saw). The Prophet (saw) said to him: “Take whichever of these two captives you like.” Abul-Haitham submitted: “O Prophet of Allah! Please choose for me yourself.” At this the Prophet (saw) said: “Al-mustasharu mu’taman,” that is, the one whose counsel is sought ought to be trustworthy, meaning he should give right counsel. Then, pointing to one captive, he said: “Take this one; he is good. I have seen him praying.” And then he said: “Treat him well.”
AI-translated by Islam-Today
Book 33: Seeking Counsel in Important Matters and Prayer for Guidance (Istikhara)