Sample SOQL:
SELECT Name, DeveloperName
FROM Report
WHERE Id IN ( SELECT CustomReportId FROM DashboardComponent WHERE DashboardId = ’01Z5f000000VAB9EAO’ )
FROM Report
WHERE Id IN ( SELECT CustomReportId FROM DashboardComponent WHERE DashboardId = ’01Z5f000000VAB9EAO’ )
Output: