There's a built-in report for that: https://learn.microsoft.com/en-us/microsoft-365/admin/activity-reports/email-activity-ww?view=o365-worldwide
You can simply use the Export functionality in the portal, then filter the report in Excel. Or you can get the report data via PowerShell and the Get-MgReportEmailActivityUserDetail
cmdlet. No server-side filtering is supported, so as with the portal, you will have to apply the filter client-side.