الجواب حامدا و مصلیا
In the name of Allah, the Most Beneficent and the Most Merciful
If the cage is spacious enough so that the bird could fly a little and the bird is also fed properly with it’s meals/water, in this situation it is not prohibited in Shari’a too to rear birds at home, rather, it is correct and permissible.
There is no harm as per Shari’a as well, in doing so if done solely for the purpose of availing the blessings.
Rubbing one’s Thasbeeh (bead roll) and Rumaal (handkerchief) etc with Ka’ba Shareef is a clear evidence of his faith and love and this not prohibited, rather, correct and permissible
Allah knows best.
