Qatar agreed in recent weeks to kick Hamas out of its country following a request from the US to do so, capping off months of failed attempts to try to get the militant group – whose top leaders reside in the Qatari capital of Doha – to accept a ceasefire and hostage release deal in the Israel-Hamas war, US and Qatari sources told CNN.